Enhancement Request: Folding Whitespace
Chris Babcock <[email protected]> Sun, 21 Jun 2009 22:56:15 -0700
| Newsgroups | gmane.mail.spam.crm114 |
|---|---|
| Organization | Kolonel Panic |
| Message-ID | <[email protected]> |
I have no idea why I expected this feature - I probably just burned a
bit of common sense wrapping my mind around the email RFCs when I was
working on the mime filters - but folding white space would be NiceTM
for those long regexps that I should break down into simpler
expressions anyhow. I just spent way too much time debugging this:
# Some other code
{
match <nomultiline> [::*:game_current:_record:] (:tmp:)\
/^([[:graph:]]+[[:space:]]+){4}:*:uid:[[:space:]]+[[:graph:]]+\
[[:space:]]+:*:CGIV_password:[[:space:]]+:*:CGIV_email:/
# Do something
}
. . .
The problem being that I naively expected the whitespace at the
beginning of a line after "\" to go away like it would in email
headers.
Silly old bear.
--- end muse ---
BTW... Use case for CRM as a CGI scripting Language:
http://usak.asciiking.com/index.html
Compare to:
http://usak.asciiking.com/content/index.html
http://usak.asciiking.com/content/includes/master.html
http://usak.asciiking.com/content/includes/left_menu
The content directory is a soft link to public_html. If a file is
accessed via a "content" URL it is served raw, otherwise it is handled
by a script that inserts the body of the source html file as a content
div in the master page. This provides a single point of maintenance for
site navigation and a meme for different data presentations (like AJAX)
in the future.
The excuse for using CRM in this case is that the app serves data from
text files maintained by a legacy application. There is a role for CRM
classifiers in Spam filtering and analyzing logs in the future, but for
now it's a fast and fun way to do Controllable Regex Mutilations.
Chris
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Crm114-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crm114-general
signature.asc
(application/pgp-signature, 489 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQEcBAEBAgAGBQJKPx0AAAoJEASgqNsqZfCHJjoH/2fbMM49bTeBS9VK7Bsi/gr3 J7MmV+ytJc1f7vyNC3z/CiP7q3GeMy8P+1E8GIJNw5JcuviaJywAa8t3YjgkB4CD f7JBallE6nISUI65kyCqOrA1vxXtxFChpiWT8aHTlyocDnJZG6DSPGKAmJ5ZD6/V Q/kweeJPkS+rMGJNgUaGaT/36/CStDWGGkJtPZX7P+aTKgBfmWToX9Ox5qcoErsC 769KSMREOA+8HwYFJXriufdwWKTpwtyIdUPR/7ojo299vLIMwbT+yWk04vp1LRB4 OFwLjyP14bP5jdKbfClo3eJrrNWBAN6ZmD8H05wz3kXVpFC37JKXhCzaUmqJQZA= =8l6Y -----END PGP SIGNATURE-----