logo       

Re: One more on sort order...: msg#00070

hardware.voyetra.audiotron

Subject: Re: One more on sort order...

The "logic" of my Emacs commands depends on powerful regular expression
matching and replacement. Things between "\(" and "\)" are saved during
matching and can be used in the replacement with "\1", "\2", etc,
where "\1" is what matched the expression enclosed by the first "\(\)"
pair and "\2" is what matched the second, and so on. Expressions
separated by "\|" will be matched by any of them. So, the second command:

(replace-regexp "^\(TALB\|TPE1\|TIT2\)=\(A\|a\|An\|an\|The\|the\)
\(.*$\)" "\1=\3, \2" nil)

means "Replace every occurance at the beginning of a line of 'TALB'
or 'TPE1' or 'TIT2' (the first submatch) followed by '=' followed by 'A'
or 'a' or 'An' or 'an' or 'The' or 'the' (the second submatch) followed
by ' ' followed by anything out to the end of the line (the third
submatch) with '(the first submatch)={the third submatch}, {the second
submatch}'".

If your VI has this kind of regular expression facility, you probably can
do this with it. Otherwise, like the other guy said, you can learn some
Perl and modify iToc to do it. 8^)

-----------------------------------------------------------
List archives: http://maillist.voyetra.com/audiotron.html
You may leave the list at any time by sending an e-mail
to LISTSERV@xxxxxxxxxxxxxxxxxxxx with only the words
"SIGNOFF AUDIOTRON" in the body of the e-mail.
Separate Message Board available at:
http://www.turtle-beach.com/wb/messageboard.htm
-----------------------------------------------------------



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise