I'm gonna select the first occurrence of an only-alphabet string which is not ended by any of the characters "."
, ":"
and ";"
For example:
"float a bbc 10" --> "float"
"float.h" --> null
"float:: namespace" --> "namesapace"
"float;" --> null
I came up with the regex \G([A-z]+)(?![:;\.])
but it only ignores the character before the banned characters, while I need it to skip all string before banned characters.