Copy link to clipboard
Copied
Hi
I have received a text from a customer (screenshot attached).
I want to keep all the matter between the parentheses intact and delete rest of them.
Also, I want to delete the matter including parentheses marked in blue.
I have written following query:
Find: \(\x{0635}:\h?\d+\)
Change to: nothing
This deletes the parentheses with the matter which is marked in blue.
Then I wrote a second query which selects the text between parentheses (marked in red). How do I keep this intact and delete the rest of the matter?
I tried (*Skip)(*fail) method but I guess I am not very good at it.
This is the query I wrote to select the text marked in red which I want to keep.
Find: (?<=\()[^()]+(?=\))
I then tried another query to delete the matter in black in one go.
F: (\(.+?\))(?:.+)
C: $1
This query does not work as it should. Its leaving much of the black matter unchanged.
Any help would be appreciated.
Thanks.
I think you're going deeper into this then you need to. Simply do a Find and Replace for any text that's Black and Replace it with nothing (i.e leave "Find what" and "Change to" blank.
Do the same for the Blue
Copy link to clipboard
Copied
I think you're going deeper into this then you need to. Simply do a Find and Replace for any text that's Black and Replace it with nothing (i.e leave "Find what" and "Change to" blank.
Do the same for the Blue
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Brad @ Roaring Mouse One more thing which I forgot to tell. I am sorry for that.
The text which I have is all in black. I just wanted to show what I need and what I dont, thats the reason I did color coding. Any other suggestions would be appreciated.
Thanks once again
Copy link to clipboard
Copied
Ah! Sorry! That does make a difference indeed! 🙂