Thanks Patrick, the "grep" term scared me off a first! I'll definitely give this a deeper whirl. Thank you again!
On Sep 25, 2:50 pm, Patrick James <[EMAIL PROTECTED]> wrote: > On 25 Sep 2008, at 20:10, Ewelk wrote: > > > > > Hi there, I was hoping someone might help me out here. I'm evaluating > > BBEdit to see if it will help with some of my work, which requires > > text formatting. Basically, I receive a file with text in it that > > looks like this: > > > Centralized Documents (331 20th Street) Files including A-Z > > > And I need to format it so it looks like this: > > > Centralized Documents > > 331 20th Street ADDRESS > > > Files including A-Z > > Hi > > I think that to change the first line into the following will work with: > > Find: (^.+?)(\()(.+?)(\) )(.+) > > Replace: \01\r\03 ADDRESS\r\r\05 > > You need to check the "Grep" box of course in the Find/Replace > dialogue window. > > > So what I was hoping to figure out is a way to wildcard the search & > > replace, so that when it encounters a (*) it strips the parentheticals > > and appends ADDRESS at the end. Also, a way to include those line > > breaks. > > To do just bit you might try: > > Find: (\()(.+?)(\) ) > > Replace: \2 ADDRESS\r\r > > > I'm only using the demo version of BBEdit so not sure if the full has > > added functionality, but interested if I can make that work. > > My very basic stab at this may work for you or may need modification. > > The key thing though is that BBEdit can easily accomplish this kind of > thing. It is the king of Find/Replace :) > > If you go to the Help and check out Grep Reference, there you will be > able to read about how you can create the expressions to suit your > particular requirement. > > Best of luck > > Patrick > > http://www.patrickjames.co.uk --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a specific feature request or would like to report a suspected (or confirmed) problem with the software, please email to "[EMAIL PROTECTED]" rather than posting to the group. -~----------~----~----~----~------~----~------~--~---
