Results 1 to 2 of 2
Thread: Warning Unknown modifier
-
01-09-2010, 07:24 AM #1
Warning Unknown modifier
Warning Unknown modifier
Warning: preg_match() [function.preg-match]: Unknown modifier '@' in class_main.php on line 124
PHP Code:
if (!preg_match("^[^@]{1,64}@[^@]{1,255}$", $email)) {
Anyone can please help me to solve my warning.
-
02-08-2010, 10:53 AM #2
Try this
The first character tells PHP which character to as the modifier. In your case, ^ is that character, so @ (and possibly the rest of the string) is treated as a modifier. There is, however, no modifier @, so you get an error. By adding / to the front, / becomes the modifier.Code:"/^[^@]{1,64}@[^@]{1,255}$/"
Similar Threads
-
Frame height problem
By hilda_mateiu in forum HTML / DHTMLReplies: 14Last Post: 05-16-2012, 03:15 AM -
Released another website
By logic in forum ReviewsReplies: 8Last Post: 03-03-2010, 11:28 AM -
New Google Sitemaps Error: "Duplicate URL" Warning
By BrainPulse in forum GoogleReplies: 0Last Post: 08-04-2009, 05:06 AM -
Malware warning on webmaster tool of my blog
By articles2u in forum GoogleReplies: 5Last Post: 02-04-2009, 05:52 AM -
Warning label generator
By Amit.Verma in forum Graphics Design & Web DesignReplies: 0Last Post: 11-06-2008, 06:43 AM




Reply With Quote

