On Apr 17, 2007, at 6:28 PM, Michael Heth wrote:

I have a large text file I need to turn into a data file. My main problem is changing a particular CR into a TAB.

The pattern I have found is where the CR is followed by a capital letter.

Like this

<the last letter of a word><CR><the first (capitalized) letter of another word>

t
S

Is there a grep search which will find all

Lowercase letters which are followed by a CR and then a Uppercase letter

and then change the CR to a TAB?

In the pattern I want to match there is never any other chars in the string.

Find: ([a-z])\r([A-Z])
Replace: \1\t\2

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