BBedit search and replace question

27 houdini's

guy with great hairdo
i need to remove a string from several docs, it goes like

Amazonia says: (9:42:31 PM)

Amazonia says: (9:42:32 PM)

Amazonia says: (9:32:31 PM)

At random order mind you

are there any search and replace hacks out there that know how to remove this string , including the numbers, in one command?
Something like find:
Amazonia says: (*:*:* PM)

replace with

A:

I have this issue also when i have to clean up a automatically generated webgallery pages with the image number in the title <title>Spring Workshop image123.jpg</title>
<title>Spring Workshop image173.jpg</title>
etc


cheers
 
don't work (or i don't understand)

i checked the "grep" checkbox, which gives colors to the \(.*\) part
but nothing happens

I also tried "Amazonia says: \.*\) leaving out the ( , because i figured that \.*\ is the variable part of the string?

can you explain the syntax you used?
 
I use BBEdit 8.0.2 (don't know if that's significant)

The "\(" just means that "(" is used as a normal character instead of any special grep meaning.
The "." means "any character" ".*" means any number of any character.

I took your first post and pasted the text into BBEdit, then I tested the replace and it worked here.

I'm attaching my find dialog.
 

Attachments

  • find.jpg
    find.jpg
    30.8 KB · Views: 4
got it. works!

1 more Q: how do get returns removed or replaced? is there a symbol?

And finally 1 more Q (as a bonus): where can i find an explanation of the syntax U used so i can fiddle around a little without asking you first?

Cheers!
 
There is a Grep reference in the help menu.

Return character = \r or \n depending on the file type.

Happy replacing.
 
Back
Top