-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Jan 26, 2018 at 03:31:37PM -0800, David Christensen wrote:
[...] > I've "cleaned up" more files than I care to remember. (Perl s/// is the > road to madness for anything but the most trivial cases.) I wanted to give > the OP an idea of what needs to be done and the level of effort involved. Pretty arrogant, if you don't even know OP's problem, much less the OP himself? Perhaps the language he is dealing with is a regular language, in which case regex is... just what the doctor ordered? Perhaps the OP has a proof for that? What do you know? Regex is a sharp tool. Much more Perl's variant, which is a tad beyond regex. You gotta learn what it's good for and what ain't. Like a good cook's knife. You might cut off your toe with it, but if you want to dig a trench in your back yard, you better use something else. BTW, you can build fine parsers with Perl regex. It just makes for the first stage (lexer) (and a bit, see above), but it works a charm. Cheers - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlpsPyYACgkQBcgs9XrR2kbo6wCfTX1cXYkAtYgVSPu1gJDjrF4C xHcAnRR/OFvLH9wMn6daRTJLLeSIF8cC =mQWd -----END PGP SIGNATURE-----