I have a simple file test.out that contains data in the form of
key1=A|shift1
key2=B|shift2
key3=C|shift3
and so on.
I need to get it to print
A
B
C
I can do it using lookbehind assertion such as this
( ?<==)([a-zA-Z])
yet I was wondering if there is another way of mutching single character following the '=' ?. I am fairly new to regex and so far I could not find good way of matching a part of a string after or before certain characters or set of characters other that using assertions.
Any examples would be helpful.
thank you in advance