Jump to content

preg_math help


GD77

Recommended Posts

Post the solution so that others may benefit.  Also, mark it as "solved."

 

The answer, for anyone who comes across this, is:

 

1)  Use alternate delimiters.  Regular expressions don't have to start and end with /.  You can use any non-alphanum character, like # or even {}.

 

2)  Escape the slash, like so:  /.+\/.+/

 

 

Link to comment
https://forums.phpfreaks.com/topic/267130-preg_math-help/#findComment-1369666
Share on other sites

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.