Jump to content

Convert js RegEx to php preg_match regex


WillyTheFish

Recommended Posts

Hello everyone!

 

I have this RegEx (used it in a JavaScript) is would like to use in preg_match, but it won't work  :(

/'|"|´|`*/img

 

Tried to 'translate' it and came up with

$test = preg_replace('/\/\'|\"|´|`*\/img/','',$test);

which didn't do the trick... 

any suggestions? thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.