I am trying to match the first word in a string without it matching also the symbol “;”
;BG1234 text text' - to match BG1234
BG1234 text text - to match BG1234
What I’ve come up with so far is this:
But this also captures the “;” at the beginning.
I want it to be considered a match even if it contains “;” at the beginning.
This is for C#.
Can you help?