Re: How To Use Grep To Change Beginning And Ending Text Only

2010-09-27 Thread Webmaster
At 8:50 AM -0400 on 9/21/10, Gabriel Roth wrote: Change your replacement pattern to: h2nbsp;nbsp;nbsp;\1/h2 The \1 here means the first parenthetical sub-pattern in the Find pattern. I strongly suggest that you read Chapter 8 of the BBEdit manual, which provides a very useful

Re: How To Use Grep To Change Beginning And Ending Text Only

2010-09-27 Thread Gabriel Roth
Anyway, thanks for the grep tip. It works perfectly. You're welcome. Glad it works. The only thing that I had to do was escape the three ampersands in the replacement string, as otherwise, I get undesirable results. Ah yes. I, uh, deliberately left those in there as an educational exercise

How To Use Grep To Change Beginning And Ending Text Only

2010-09-21 Thread OleBBSer
Hello Everyone, Patrick has already explained to me how to change text on the left and right sides of a phrase, without changing the center phrase, when the center phrase is a fixed string. However, what if the center phrase is NOT a fixed string, but rather a title of a book, for example, and

Re: How To Use Grep To Change Beginning And Ending Text Only

2010-09-21 Thread Gabriel Roth
Change your replacement pattern to: h2nbsp;nbsp;nbsp;\1/h2 The \1 here means the first parenthetical sub-pattern in the Find pattern. I strongly suggest that you read Chapter 8 of the BBEdit manual, which provides a very useful introduction to grep. The relevant section here is 'Writing