Jump to content

convert ereg to preg_match?


jitu99

Recommended Posts

preg_match('~\$Revision: (\S+)~', $this->revision, $rev);

\S is a shorthand character class matching any non-whitespace character.

 

The only other difference is the use of pattern delimiters (tildes in my case), which is required with preg_match().

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.