Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » URL
Showing page 1 of 3 (23 total posts)
  • [solved] Discarding a substring ?utm from an URL

    Hi! I am working in a website, using PHP (in Wordpress, if that matters). I need to match all links that contain the string ?utm and get rid of this string and all other junk until the end of the link. For example: Source [1]: <a href="www.example.com/anything/?utm_source=feedburner&utm_medium=feed"> I need the output to ...
    Posted to Construction Advice (Forum) by daniel3ub on March 1, 2011
  • Almost there, help please!

    I'm trying to match the file extension of an html link, and matching the one PREVIOUS to the last one when there are two of them, to get the original file extension, not the extension added by the archive. So for "file.ai.zip" $2 should match "ai". Here's the one I came up with, but $2 and $3 ALWAYS match ...
    Posted to Construction Advice (Forum) by sergiozambrano on June 19, 2010
  • RegEx and Google Analytics

    Hi Guys. I am trying to set up a Goal Funnel within Google Analytics for a clients ecommerce website but I am having trouble writing the regular expression for the final payment page: Basically I believe the URL is: https://secure.romancart.com/payment/genComplete.asp?orderid=6383316 Obviously the url remains the same with the exception of ...
    Posted to Construction Advice (Forum) by mackenzie on November 25, 2009
  • PHP regex

    I need help with a regular expression in PHP, I have made a small forum, and I am adding features, up until now whenever someone types a url "http://..........." I use a regex to make a link, but now I have new features, one of them is adding youtube videos, to do this I ask my members to simply type youtube(youtube_url) the problem is ...
    Posted to Construction Advice (Forum) by djp1@ymail.com on July 25, 2009
  • Regex for URLs

    Hi, I've been trying for sometime to write a regex to extract values from a url in Actionscript 2.0. My url could be of the form: http://<hostname>:<port>/<some page address> So far, i've been able to get the following to work: (https?):\/\/([\w\d#@%\/;$()~_?\+-=\\\.&]*):([1-9][0-9]*)\/ You might know that ...
    Posted to Construction Advice (Forum) by funkyasl on May 14, 2009
  • Parse URL, Extract part after .edu/

    I'm trying to create two javascript bookmarklets:1. Take the current URL of the page and open a new window with a URL based on the current page. Some examples (I use "->" to mean "this URL turns into that URL"): http://example.edu/som/faculty_staff.cfm#HeaderTitle -> ...
    Posted to Construction Advice (Forum) by SimonDorfman on March 16, 2009
  • Relative Url Validation

    I will appreciate your help on validation reg expression for relative URL. our application has a text box for entering relative url : e.g /mystore/product/querystring?=aaaa The following conditions apply: 1. should begin with "/" 2. after first "/", if there is no subsequent "/", ?= et should be allowed 3. if ...
    Posted to Construction Advice (Forum) by gtmm9 on March 3, 2009
  • preg_match, to match URL in email.

    Hi,  I'm using PHP to parse an incoming email. I wish to be able to match then store URL's contained in the email message. I just need to figure out the RegEx to match URL's.  I've been currently building and testing ...
    Posted to Construction Advice (Forum) by pdxbenjamin on January 24, 2009
  • Append parameter to URL

    Hi, I need your help in building a RegExp (to be used in PHP) that will append a parameter (?param=value) to the URL. They follow this format: http://website.com/abcdef123456.html  or this format : http://website.com/a/category/123456-ABC/Long_description_goes_here.html Here's what I want to achieve. Before: ...
    Posted to Construction Advice (Forum) by HexCAFE on January 15, 2009
  • Re: Issues with percentage signs in URL redirection

    Hi,   Found a way... The unusual string of characters eg: "%e2%80%93" can simply be matched with a "(.+)" (no quotes)  I'm sure there's a better way but I'm new to regex and I'm happy that I'm now able to redirect the URL's that I want to.  Regards,  R  
    Posted to Construction Advice (Forum) by rschilt on January 10, 2009
1 2 3 Next >