Searching for a character within single quotes

General questions about using TextPad

Moderators: AmigoJack, helios, bbadmin, Bob Hansen, MudGuard

Post Reply
manualph
Posts: 13
Joined: Mon Jan 04, 2010 7:08 am
Location: India

Searching for a character within single quotes

Post 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'
ben_josephs
Posts: 2456
Joined: Sun Mar 02, 2003 9:22 pm

Post 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?
Post Reply