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

Browse by Tags

All Tags » php » URL
  • 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
  • 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
  • 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
  • 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