Hi guys I have a string for example…
“Afds 1.2 45002”
What I wanted to do using regex is to start from the left, return characters A-Z || a-z until an unmatached is encountered.
So in the example above I wanted to return “Afds”.
Another example
“BCAD 2.11 45099 GHJ”
In this case I just want “BCAD”.
Thanks
use this regular expression
(?i)^[a-z]+(?i)– ignore case^– begin of string[a-z]– any latin letter[a-z ]– any latin letter or space+– 1 or more previos symbol