Obviously the problem is the character '&'

Is there a way to 'write' this character in a grep serch result
instead of it writing the whole results string?

Yes: use \& in your replace string (& escaped with \).
As you noticed, in grep '&' means 'the whole search string'.

JP

--
------------------------------------------------------------------
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]>

Reply via email to