Page 1 of 1

Searching for a character within single quotes

Posted: Mon Jan 04, 2010 8:36 am
by manualph
Version:5.3.1

In textpad, is it possible to search for a character which are within single quotes?

For ex: I want to search for the character ampersand (&) but only those which are within single quotes like below
'ScheduledList&PostEventsRSDAction'

Posted: Mon Jan 04, 2010 11:05 am
by ben_josephs
Use Posix regular expression syntax:
Configure | Preferences | Editor

[X] Use POSIX regular expression syntax
You can search for lines that contain an ampersand between properly paired single quotes:
^[^']*('[^']*'[^']*)*'[^']*&[^']*'

What do you want to do with these ampersands?