also sprach Mark Ferlatte <ferlatte@cryptio.net> [2002.01.22.1914 +0100]: > > How can I match the same character repeated n times? > > ".{n}" matches any n characters. > > "a{3}" will match aaa, aaaa, and aaaaa. but only aaa, aaaa and so on. not *any* letter repeated n times. i had a hard time interpreting the question too, but i think that (.)\1{n-1} as someone else proposed is the way to go. -- martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck breakfast.com halted - cereal port not responding.
Attachment:
pgpHH5y0WBb0x.pgp
Description: PGP signature