[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: REGEX question



On Mon, Jan 21, 2002 at 05:07:21PM -0500, Alec wrote (1.00):
> How can I match the same character repeated n times?
> ".{n}" matches any n characters.

"a{3}" will match aaa, aaaa, and aaaaa.

"b{7}" will match bbbbbbb, etc.

HTH,

M

Attachment: pgpWRByyI6VY1.pgp
Description: PGP signature


Reply to: