I just don't get a simple search item

27 views
Skip to first unread message

D O

unread,
Sep 21, 2021, 4:22:21 PM9/21/21
to BBEdit Talk
I have a bunch of file that were formatted incorrectly 
So I have terms like this 

</SerCPU>
</ShoeType>

I want to find them and eliminate them
I just don't get the wild cards to work 

If I search </*>  or - should this not return both of the above ?

I really don't get this - 

Kaveh

unread,
Sep 21, 2021, 4:45:53 PM9/21/21
to bbe...@googlegroups.com
Hi 

Please try this:

</.+?>

ensure "grep" is switched on. This searches for the shortest match for:

</ any number of characters >

. means any char
+ means one or more
? means shortest match, else it might find a >< within the match

--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/152fae56-1dbe-4d68-9d82-564745e93484n%40googlegroups.com.


--
Kaveh Bazargan PhD
Director
Accelerating the Communication of Research

D O

unread,
Sep 22, 2021, 10:45:08 AM9/22/21
to bbe...@googlegroups.com
Hi Kaveh 
Thanks for your reply - I got it to work.
I appreciate the help.

As no good deed goes unpunished I am going to dig into Grep to sort out the rest of these files. 

Thanks
Dennis 


You received this message because you are subscribed to a topic in the Google Groups "BBEdit Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bbedit/cgnopswrob0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/CAJ2R9pjy%2BhLUTqMRXW-24TyN0he%2BdZe_pMXPTXvQX0m_Z1rhyA%40mail.gmail.com.

Kaveh

unread,
Sep 22, 2021, 11:35:54 AM9/22/21
to bbe...@googlegroups.com
Glad it worked Dennis. As long as the punishment resulting from my good deed is carried out by you, I am ok with it. ;-)

Seriously, feel free to come back on list or even directly for any more help. You might find regex101 useful. Great interactive sandbox. (I know BBEdit has great sandbox too but I have not used it). 

You can save pages and go back. e.g. see this page with your example

Regards
Kaveh

Reply all
Reply to author
Forward
0 new messages