ROWS: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
a.facebook.com/plugins b.facebook.com/dialog c.facebook.com/like d.facebook.com/foobar e.facebook.com
Execution Time(sec.): 0.000017 Raw Match Pattern: (.*)facebook\.com\/?(?!plugins)(?!dialog)(?!like)(.*) PHP Code Example: <?php $sourcestring="your source string"; preg_match_all('/(.*)facebook\.com\/?(?!plugins)(?!dialog)(?!like)(.*)/',$sourcestring,$matches); echo "<pre>".print_r($matches,true); ?> $matches Array: ( [0] => Array ( [0] => a.facebook.com/plugins [1] => b.facebook.com/dialog [2] => c.facebook.com/like [3] => d.facebook.com/foobar [4] => e.facebook.com ) [1] => Array ( [0] => a. [1] => b. [2] => c. [3] => d. [4] => e. ) [2] => Array ( [0] => /plugins [1] => /dialog [2] => /like [3] => foobar [4] => ) )