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
2010-03-20 08:20:14
`[a|o]` is a character class. Try to search "bus" or "bills".
KennyTM
2010-03-20 08:21:46
yeah but the example shows that | does work
gX
2010-03-20 08:29:36
but cat|cot does not work.
tinypig
2010-03-20 08:31:47
yeah i guess thats right -> http://stackoverflow.com/questions/820740/how-do-you-use-notepad-regex-pipe-for-strings-longer-than-one-character
gX
2010-03-20 08:39:11