I am looking for a regex that matches first word in a sentence excluding punctuation and white space. For example: \"This\" in \"This is a sentence.\" and \"First\" in \"First,
You can use this regex: ^\s*([a-zA-Z0-9]+).
^\s*([a-zA-Z0-9]+)
The first word can be found at a captured group.