Jump to content
php.lv forumi

RegEx (Regulārās izteiksmes)


daGrevis

Recommended Posts

Sveiki,

Problēma ar regEx'iem. Atradu, tā teikt totāls supers, resursu, kura ir labi piemēri regEx'iem, bet problēma: PHP met sekojošu brīdinājumu. Kā novērst?? =)

 

Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in ***\functions.php on line ***

 

Kods:

function is_IP($IP)
{

return(!preg_match('\b(?:\d{1,3}\.){3}\d{1,3}\b', $IP)) ? false : true;

}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...