Christopher Schultz wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1Pid, Pid wrote:I'm trying to write a regex that will turn Mr Kewl's posts into something readable, if anyone would care to help.How about: s/wot/what/g s/\.\.\./.\n/g
Many thanks. I will add your first rule, and: s/\bu\b/you/g
That ought to help quite a bit ;)
I started with: s/([^\.]{72,})\.{3,}\s+?/$1.\n\n/g s/\.{3,}/, /gbut then realised (after a coffee) that the latter rule on it's own is more effective, especially if you:
s/\.\s+/.\n\/g s/\n+/\n\n/g
- -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGTvfc9CaO5/Lv0PARAkn6AJ9MkGkHU09lg6xte3Ci/t+s6h0GQQCfV5Cj 79znBPu/CRQrfk9fTMhP5p0= =54O0 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
smime.p7s
Description: S/MIME Cryptographic Signature