Question is how I replace it. Clearly \15 doesn't work since it
references pattern 15...
There is usually a way to disambiguate this sort of thing. Ronald
suggested \015, which appears correct although I couldn't find docs
for this in the BBEdit Grep Help, and it looks disturbingly like an
octal character. Perl uses ${1} for this case (ie, ${1}5).
However the thing to keep in mind is you can solve a lot of these
types of problems by just adding a step at the end, and it is a lot
faster than looking up the answer and a lot lot faster than emailing
about it (although you don't learn as much). For example in this
case, replace with
\1<bullet>5
(<bullet> is option-8, but any character will do, as long as it is
not used in the file (a quick search for it will confirm whether it
is used)). If necessary, you can use a more complex placeholder like
<bullet>DELETEME<bullet>.
Then a search and replace of <bullet> with nothing will fix it.
Of course, in this case, \015 is a better solution, I'm just
reminding folks that using a temporary placeholder can solve a lot of
grep problems.
Enjoy,
Peter.
--
Check out Interarchy 8.2, just released, now with Growl support.
<http://www.stairways.com/> <http://download.stairways.com/>
--
------------------------------------------------------------------
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]>