Thanks for that, did the job nicely, how does that grep pattern work?
I'm sure there's more documentation on this in the BBEdit manual, but
I'm too lazy to actually look so I'll give you pseudo definitions based
on strings from the Perl regular expressions documentation ("perldoc
perlre" in your shell).
Search for: (\w)\s+
-> ( ) = "anything inside the parenthesis is captured/remembered"
-> \w = a single word-like character. "A "\w" matches a single
alphanumeric character (an alphabetic character, or a
decimal digit) or "_", not a whole word."
-> \s+ = one or more whitespace characters.
Replace with: \1 <---- there's a single space after the \1
-> \1 = BBEdit syntax for "the first thing captured by the
parenthesis in the search regular expression".
-> " " = the space character that is invisible. basically,
since the \s+ above is NOT in the parenthesis (and
thus not in \1), we have to add the single space back.
--
Morbus Iff ( death to videodrome long live the new flesh )
Technical: http://www.oreillynet.com/pub/au/779
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>