Author Topic: Convert js RegEx to php preg_match regex  (Read 651 times)

0 Members and 1 Guest are viewing this topic.

Offline WillyTheFishTopic starter

  • Irregular
  • Posts: 26
    • View Profile
Convert js RegEx to php preg_match regex
« on: February 09, 2010, 08:34:38 AM »
Hello everyone!

I have this RegEx (used it in a JavaScript) is would like to use in preg_match, but it won't work  :(
Code: [Select]
/'|"|´|`*/img
Tried to 'translate' it and came up with
$test preg_replace('/\/\'|\"|´|`*\/img/','',$test);
which didn't do the trick... 
any suggestions? thanks