Jump to content

preg_match


kdsxchris

Recommended Posts

When I used the following code I got the following error:

 

echo preg_match ('[a-z]{2,6}', 'ccc');

 

Warning: preg_match() [function.preg-match]: Unknown modifier '{' in file on line 3

 

If I used the ereg function, I get no error the results I want. Does PCRE not allow the { quantifier thing?

 

PHP version 4.4.7

Link to comment
https://forums.phpfreaks.com/topic/53960-preg_match/
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.