Top "Preg-match-all" questions

A PHP function that performs a global regular expression match using PCRE patterns.

preg_match_all into simple array

I have preg_match_all function: preg_match_all('#<h2>(.*?)</h2>#is', $source, $output, PREG_…

php arrays multidimensional-array preg-match-all pcre
How to get all captures of subgroup matches with preg_match_all()?

Update/Note: I think what I'm probably looking for is to get the captures of a group in PHP. Referenced: …

php regex grammar preg-match-all
Finding urls from text string via php and regex?

I know the question title looks very repetitive. But some of the solution i did not find here. I need …

php regex preg-replace preg-match-all
Is there a way to pass another parameter in the preg_replace_callback callback function?

mmmh guys, i really hope my english is good enaught to explain what i need. Lets take this example (that …

php preg-replace preg-match preg-match-all preg-replace-callback
PHP preg_match_all limit

I'm using preg_match_all for very long pattern. when run the code, i got this error : Warning: preg_match_…

regex preg-match preg-match-all php
preg_match_all and preg_replace in Ruby

I am transitioning from php to ruby and I am trying to figure the cognate of the php commands preg_…

php ruby-on-rails ruby preg-replace preg-match-all
Regexp for german phone number format

I try to get phone numbers from string in german format. But I don't get it to full run. The …

java php regex preg-match preg-match-all
Understanding Pattern in preg_match_all() Function Call

I am trying to understand how preg_match_all() works and when looking at the documentation on the php.net …

php regex preg-match-all
Php regular expression to match a div

This is mycode <?php /** * @author Joomlacoders * @copyright 2010 */ $url="http://urlchecker.net/html/demo.html"; $innerHtml=file_get_contents($url); //…

php preg-match-all
PHP: How do I get the string indexes of a preg_match_all?

let's say I have two regexp's, /eat (apple|pear)/ /I like/ and text "I like to eat apples on a …

php regex preg-match-all