Re: [PHP] Regex error

2007-03-14 Thread Richard Lynch
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 -

Re: [PHP] Regex error

2007-03-14 Thread Myron Turner
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

Re: [PHP] Regex error

2002-01-21 Thread Bas Jochems
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

Fwd: Re: [PHP] Regex error

2002-01-18 Thread bvr
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