Been struggling with this one...
ABC 123 tab 123 tab 534
$DEF564 (Hello World) Something Arbit-rary here
I want to get matched text of:
ABC 123
DEF564
This pretty much explains what text I want matched [-A-Z0-9_ ]+ (my examples don't cover all possibilities)
The problem is that it is start of line ^ text
so ^[-A-Z0-9_ ]+ will match the first example but fail of course on the 2nd.
How do I write a regex ignoring the $ in the first position? That is the only possibility in my source text either there is a $ or no $ in the first character but I don't want this $ to be part of my matched text result string.
I'm sure this is not difficult for someone who knows regex well but my regex ability is rather limited, so that's why I've been spending a lot of time on this and getting nowhere.
So the answer I need is
^IgnoreDollarSignInFirstCharacterIfPresent[-A-Z0-9_ ]+