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
  • Uncommon URL pattern retrieval

    Hi, Anybody out there, I'd be immensly greatful if you helped me fix one regular expressions of mine. Basically I've written a regular expression in PHP identifying a pattern of a certain type of URL REGEX: /(http\:\/\/dx\.doi\.org\/.*?)(\s|$|;|>)/ it will catch strings of URLs from the 'http://dx.doi.org/' domain, looking ...
    Posted to Construction Advice (Forum) by ksyandagger on August 19, 2008
  • URL matching... it's been done to death, but what is going on with this?

    Hi guys and gals, Ok, some background: I'm writing a Twitter application (javascript) so I have to parse all kinds of URLs. This is what I have: regex = new ...
    Posted to Construction Advice (Forum) by BklynKid on May 13, 2008
  • Apache ReWrite is killing me...

    Hello all, First post, but I'll try not to annoy you too much. I'm currently trying to write out a nice regex for Apache's ReWrite engine so that I can use search engine friendly (SEF) URLs. The problem I'm coming across is that optional parameters (such as language) are pulling in an 'undefined' value. Here's ...
    Posted to Construction Advice (Forum) by mcongrove on May 8, 2008
  • Need help writing a regex to convert a YouTube Embed URL.

    Hello, I'm modifying some code that scans through an html document, and converts YouTube links to a URL of our server with $replacement1+ the YouTube ID as a URL parameter "url" (which you can see in the last line).  Everything seems ok, I just can't figure out the line for $pattern1.  I've tried probably 100 things ...
    Posted to Construction Advice (Forum) by liwii on April 15, 2008
  • Need help with zero or once matches

    Urls:  "~/Home/Partner/OnBoard/Cabin/default.aspx" "~/Home/Partner/OnBoard/Cabin/default.aspx?param=2" regex: (~/[Hh]ome/[Pp]artner/[Oo]nboard/)(.*)(/.+\..+)(\?)(.*) current matches:  "~/Home/Partner/OnBoard/Cabin/default.aspx" None "~/Home/Partner/OnBoard/Cabin/default.aspx?param=2" 1: ...
    Posted to Construction Advice (Forum) by Bkr on February 26, 2008
  • pulling specific variable from querystring URL

    Hi, I am using PHP5 on a XAMP installation. I am trying to extract a specific variable from a querystring (which is stored in my MySQL DB) The format of the string is always consists of the same parameters (p, x & y), however sometimes they could be in a different order. A sample querysting is below and I am ...
    Posted to Construction Advice (Forum) by sanmi on February 12, 2008
  • PHP Substring Equivalent in Regex

    Hello, I am building some custom urls for finding images online. These are like:  www.website.com/images/123456789.jpg  Usually these are isbns or upc codes for products or books. I am currently doing string replacement by php, for substituting the number by an expression and replacing that expression with whatver number, when I do a ...
    Posted to Construction Advice (Forum) by ccisystems on December 2, 2007
  • REGEX solution for a URL

    Hi All, I am trying to find out a regex pattern for a particular URL type, to extract a particular piece of information from that URL. I am working on JAVA and the URL sample goes like this lid={ifpdf:92000000000012345}{ifnonpdf:33000000000012345}&cadid=12345}  I am trying to search for the italicized part of the ...
    Posted to Construction Advice (Forum) by kedar on November 15, 2007
  • Regular Expression for URLRewriting

    I need a regular expression to match three different sections of a URL... I think i am close, but there are a couple of small issues and my head is starting to spin!  Any help appreciated: REQUIREMENT To split a URL into three parts: Category String (may or may not be present) Product String (may or may not be ...
    Posted to Construction Advice (Forum) by jshallard on August 1, 2007
  • Wrap URL's with HREF Tags (Search/Replace)

    Hello. I am have an application in Ruby on Rails. I need help with the following regular expression to find URL's contained anywhere in posted text and wrap them with <a href="URL">link</a> parameters so that they link in HTML. Two examples are below: Check out http://www.xyz.com  =>  Check out <a ...
    Posted to Construction Advice (Forum) by Teddy on July 31, 2007