[Chicago-talk] REGEX question

Richard Solberg flateyjarbok at yahoo.com
Fri Apr 16 17:36:32 CDT 2004


Hi all,

I have a regex question.  In Camel it states the two
cases.  

$html = "exasperate"

1) $html =~ /e(.*?)e/ # $1 = "xasp"

2) $html =~ /.*e(.*?)e/ # $1 = "rat"

I have a problem that would be solved if I could get
an array filled with $array[0] = "xasp" and
$array[1]="rat", $array[2] = third set of characters
between 2 e's , $array[n] = .... until no more matches
found. 

Any help appreciated.  

Richard Solberg





	
		
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html



More information about the Chicago-talk mailing list