From: come Date: 2007-08-23T23:05:21+09:00 Subject: Re: something like eregi() in ruby? On 23 ao�t, 11:23, Schu wrote: > hi people! > > i can't info on that - is there anything comparable to the > functionality of ereg() or preg_match() of PHP under ruby? > > thx in advance > S Hi, Of course : I don't know PHP but I think match is the closer equivalent of ereg re.match(string) or string.match(re) => object matchdata This object matchdata has methods like pre_match and post_match. Come