[Nottingham] Perl Regular Expression Query.

Michael Erskine nottingham at mailman.lug.org.uk
Fri Jan 17 14:39:09 2003


> -----Original Message-----
> From: Martin Garton [mailto:martin@wrasse.demon.co.uk]=20
> Sent: 17 January 2003 14:27
> To: Nottingham LUG (E-mail)
> Subject: Re: [Nottingham] Perl Regular Expression Query.

> I think using just /@.*@.*@.*@/ will work.
> You dont need the question marks, since * means match the preceeding
> expression zero or more times anyway. (Note: I havent tried it!)
>=20
> --=20
> Martin

The question marks are required for non-greedy matching. (Note: I have
tried it!)