You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2007/05/19 15:13:00 UTC
Re: [OT] UserDatabase & security
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Pid,
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
That ought to help quite a bit ;)
- -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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: [OT] UserDatabase & security
Posted by Pid <p...@pidster.com>.
Christopher Schultz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Pid,
>
> 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,}/, /g
but 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>