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 » matching
  • Find all URLs to shorten for Twitter

    I am using the Shorten URL in a text using Bit.ly PHP class by Muhammad Arfeen and I would like to replace his code with Philippe Leybaert's code. The original PHP code is below: preg_match_all(’(((f|ht){1}(tp://|tps://))[-a-zA-Z0-9@:%_+.~#?&//=]+)’, $text, $hyperlinksArray); Here is the same code with Philippe ...
    Posted to Construction Advice (Forum) by thripp on September 4, 2010
  • REG_BADRPT when i'm trying to test a regex with ereg (POSIX)

    Hello everyone, I'm pretty new to regexes and I've got a small problem. I have the following regex: (?<=lblVacant">(ab )?)([\d,.\/]+)(?=(<\/span>|\s\-)) which should match ose1_DetailEstateData1_lblVacant">06.08.2009 - 30.10.2009</span></td> ailEstateData1_lblVacant">10.08.2009 - ...
    Posted to Construction Advice (Forum) by Olty on August 6, 2009
  • Matching quotes strings with escaped quotes with multiple occurances

    Hi there, After hours of searching i found nothing that worked. I've got the following string and i want to match all parts between single quotes. It has to deal with user input so the next example is valid: (the both outer double quotes are to show what the sentence is)   "hello world, this is a 'quoted string' using ...
    Posted to Construction Advice (Forum) by badgerx on June 2, 2008