tags:

views:

173

answers:

1

Notepad++'s Regular Expressions don't support symbol |.So how can I find different words like a or b in notepad++?

A: 

Its working at my end, I'm using this:
c[a|o]t to search for cat OR cot

Do you have the latest version, 5.4.3?

gX
`[a|o]` is a character class. Try to search "bus" or "bills".
KennyTM
yeah but the example shows that | does work
gX
but cat|cot does not work.
tinypig
yeah i guess thats right -> http://stackoverflow.com/questions/820740/how-do-you-use-notepad-regex-pipe-for-strings-longer-than-one-character
gX