Hi folks,
I would like to remove all text, but NOT numerical data which are in quotes.
e.g) "text_4"
becomes
_4
I'm sure its probably simple, but i dont know how to distinguish between the quotes themselves and the text within them. Obviously just putting " in the search removes the quotemarks and not the text within them.
tia
tl
Removing quoted lines
Moderators: AmigoJack, bbadmin, helios, MudGuard
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
Do you mean that you want to find text between double quotes, and that you want to delete those quote marks and everything between them that isn't a digit or an underscore? Is there at most one contiguous string of digits and underscores in such quoted text?
If so, this might do what you want:
If so, this might do what you want:
This assumes you are using Posix regular expression syntax:Find what: "[^"0-9_]*([0-9_]+)[^"0-9_]*"
Replace with: \1
[X] Regular expression
Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
-
textlearner
- Posts: 8
- Joined: Sat Sep 09, 2006 2:53 pm
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm