On 3 Jun 2006, at 13:13, Ben Dougall wrote:
based on the below question (ignoring the "rather than writing an
external program" part) and on my own wishes on numerous occasions,
is this possible in bbedit somehow
when doing regex find and replaces for example, in the places in
the replace box where you can refer to found sections of text using
\1 and \2 etc, is it possible to carry out what this indicates:
\1 | /Users/Desktop/mycommandlineutility
and have external processes take text input (which would be the
piece of text found by the bracketed find regex), processes it in
whatever way it's programmed and insert its input into the text
just as \1 does in the usual way but the processed by external app/
utility version of \1
I don't think it's possible in BBEdit at the moment.
It's a good idea, though, and others have thought so too, because
there are some scripting languages around that will let you call
functions as part of the replace part of a 'grep'-style search and
replace operation. It makes sense, really, since you often want to do
something with text once you've found it. Although I suspect it makes
an already complex feature even more complicated.
, and if not, why not?:
Perhaps nobody has asked for it?
be very handy. if it's not possible i'm amazed as i would have
thought this would be very useful and not hard to add in
Well, that's definitely not something I can make any useful comment
on...! :-)
cheers
Pete
(Didn't see your email at the end of the hex thread, sorry.)..
--
------------------------------------------------------------------
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]>