PHP » PYTHON |
login |
register |
about
|
|
Like PHP example:
import re string = 'XYZ' if re.search('z', string, re.I): print "'string' contains a 'z' or 'Z'!" eregi(PHP 4, PHP 5) eregi — Case insensitive regular expression match Description
int eregi
( string $pattern
, string $string
[, array &$regs
] )
This function is identical to ereg() except that it ignores case distinction when matching alphabetic characters. Parameters
Return ValuesReturns the length of the matched string if a match for pattern was found in string , or FALSE if no matches were found or an error occurred. If the optional parameter regs was not passed or the length of the matched string is 0, this function returns 1. Examples
Example #1 eregi() example
<?php
See Also
|
more
Recently updated
more
Most requested
|