find a certain combination of characters

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
mixtape
Posts: 9
Joined: Fri Mar 04, 2011 9:42 am

find a certain combination of characters

Post by mixtape »

Hi!

I'm trying to find the combination "-x

where x is any kind of letter.
how to i write this in the search field?

Thanks,
A.
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

"-[a-z]

Might it be time for you to learn something about regular expressions for yourself?

You may find it helpful to read TextPad's help on regular expressions, although it's rather brief. Look under
Reference Information | Regular Expressions,
Reference Information | Replacement Expressions and
How to... | Find and Replace Text | Use Regular Expressions.

There are many regular expression tutorials on the web, and you will find recommendations for some of them if you search this forum.

A standard reference for regular expressions is

Friedl, Jeffrey E F
Mastering Regular Expressions, 3rd ed
O'Reilly, 2006
ISBN: 0-596-52812-4
http://regex.info/

But be aware that the regular expression recogniser used by TextPad is very weak compared with modern tools. So you may get frustrated if you discover a handy trick that works elsewhere but doesn't work in TextPad.
Post Reply