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

Browse by Tags

All Tags » preg_match_all
  • regex match

    Hi all,  i have a question about regex. How can i use php preg_match_all to match all stuff inside custom tags, including any new lines. the parsed text looks like this: [article] lorem ipsum dolor.. lorem ipsum dolor ... lorem ipsum dolor ...  [/article]  expresion used for ignoring only one new line ...
    Posted to Discussion (Forum) by w3bbuilder on October 29, 2008
  • Help on extract url and image

    Hello how's everyone doin'? I need help with the regular expression in PHP (using preg_match_all) that would extract the url and the image of these two: <A HREF="movie1.mpg"><img name="movie1" src="images/tn_01.jpg" width="320" height="240" border="0" alt="Play ...
    Posted to Construction Advice (Forum) by esthon_wood on June 25, 2008
  • Help on extract url and image

    Hello how's everyone doin'? I need help with the regular expression in PHP (using preg_match_all) that could extract the url and the image of these two: <A HREF="movie1.mpg"><img name="movie1" src="images/tn_01.jpg" width="320" height="240" border="0" alt="Play ...
    Posted to Construction Advice (Forum) by esthon_wood on June 25, 2008
  • Re: Regex for unknown number of lines - Assistance Request

    It's OK, I think I've found the answer to my own question. The # signs bracket the actual regular expression, and the e and the s are modifiers - e is equivalent to PREG_REPLACE_EVAL and  s is equivalent to PCRE_DOTALL. Maybe these are things which are so familiar to the experienced players that they almost go without saying, but ...
    Posted to Construction Advice (Forum) by mtgradwell on June 8, 2008
  • Re: Regex for unknown number of lines - Assistance Request

    I have a problem which seems similar to the one documented here, so I hope somebody reading this can help me too. I have a page of PHP code which works some of the time, but not always, so I'm trying to discover the bugs in it. It includes the line  preg_match_all('#<!-- start content -->(.*?)<!-- end content -->#es', ...
    Posted to Construction Advice (Forum) by mtgradwell on June 7, 2008
  • 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