I want to match 'windowsXP' in this string:
windowsXP|7|8
Or
windowsXP 7 8
I wrote a pattern to match it:
([^0-9|])+[0-9\.]+.*
Why doesn't it match? It's the | making the trouble in the bracket. I tried escaping it but it didn't work either.
([^0-9\|])+[0-9\.]+.*