pastebin

Paste Search Dynamic
Recent pastes
match
  1. <?php
  2. $string_1 = "$2.420";
  3. $string_2 = "Scorpions 'Scorpions 'Dynamite''";
  4. $pattern = "/(.*)'($[^']+)'/";
  5. $s1 = preg_match ($pattern, $string_1, $match1);
  6. $s2 = preg_match ($pattern, $string_2, $match2);
  7. foreach ($match1 as &$value) {
  8.     $value = trim($value);
  9. }
  10. foreach ($match2 as &$value) {
  11.     $value = trim($value);
  12. }
  13. var_dump($match1);
  14. var_dump($match2);
  15. ?>
Parsed in 0.016 seconds