On Mon, Jul 04, 2005 at 11:48:32PM +0200, Danilo Segan wrote: > Today at 23:25, Keld Jørn Simonsen wrote: > > > Page 32: Why is .* useles? > > Because regular expression of "^[AaBb].*" matches the same thing as > "^[AaBb]", only the latter has a better chance of gaining better > performance (though this can probably be easily optimised out in regex > library).
Yes, both strings will match the same things, so you can say that .* is useless. I think the motivation behind it was to say, "all strings that begin with ... irregardless of the ending " but the .* does not add anything, except time... best regards keld -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

