|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-11 15:13 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 21:00:01 2025 UTC |
Description: ------------ The double backlash and single backlash is same result in eregi. Reproduce code: --------------- These codes are judging "$domain" in right or wrong format. But two lines get the same result.Could any one tell me why? Thanks! eregi("^[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,4}$", $domain eregi("^[0-9a-z]([-.]?[0-9a-z])*\.[a-z]{2,4}$", $domain