On Wed, March 14, 2007 7:56 pm, jekillen wrote:
> Hello;
> The following regex:
>
> ereg(" id='$m[1]'>", $groups, $m1);
>
> is causing the following error:
>
> Warning: ereg() [function.ereg]: REG_ERANGE in _proc.php on
> line 81
>
> Can someone tell me what this means?
You used to have the -
jekillen wrote:
Hello;
The following regex:
ereg("id='$m[1]'>", $groups, $m1);
is causing the following error:
Warning: ereg() [function.ereg]: REG_ERANGE in _proc.php on
line 81
Can someone tell me what this means?
What I am trying to do is pick out some info from an xml tag the is
id'd
use
$rgTemp = split('[|]',$szTag);
instead of
$rgTemp = split("|",$szTag);
on line 2
PHP List wrote:
> Hi,
> Can someone please tell me why the this is happening:
>
> 1) $szTag = "test|3";
> 2) $rgTemp = split("|",$szTag);
> 3) $szTag = $rgTemp[0];
> 4) $nItemID = $rgTemp[1];
> ^lin
split() takes a regular expression,
this means you have to escape the | char with a \
like this:
$rgTemp = split("\|",$szTag);
bvr.
On Fri, 18 Jan 2002 14:40:25 -0800, PHP List wrote:
>Hi,
>Can someone please tell me why the this is happening:
>
>1) $szTag = "test|3";
>2) $rgTemp = spli
4 matches
Mail list logo