Results 1 to 2 of 2
  1. #1
    Abina's Avatar
    Abina is offline Master
    Join Date
    Dec 2009
    Location
    United States
    Posts
    1,073
    Thanks
    1
    Thanked 6 Times in 4 Posts
    Feedback Score
    0

    Default 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.

  2. #2
    numberone's Avatar
    numberone is offline Senior
    Join Date
    Jan 2010
    Posts
    623
    Thanks
    0
    Thanked 1 Time in 1 Post
    Feedback Score
    0

    Default

    Try this

    Code:
    "/^[^@]{1,64}@[^@]{1,255}$/"
    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.

Similar Threads

  1. Frame height problem
    By hilda_mateiu in forum HTML / DHTML
    Replies: 14
    Last Post: 05-16-2012, 03:15 AM
  2. Released another website
    By logic in forum Reviews
    Replies: 8
    Last Post: 03-03-2010, 11:28 AM
  3. Replies: 0
    Last Post: 08-04-2009, 05:06 AM
  4. Malware warning on webmaster tool of my blog
    By articles2u in forum Google
    Replies: 5
    Last Post: 02-04-2009, 05:52 AM
  5. Warning label generator
    By Amit.Verma in forum Graphics Design & Web Design
    Replies: 0
    Last Post: 11-06-2008, 06:43 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Partners: BOSTON WEB DEVELOPER, LLC   |   WEBCOSMO CLASSIFIEDS