Textarea return position where pattern is found.

is there a way that the TextArea could return the position of where the start of a pattern is found ?
is there a provision in Regex ( Regular Expression ) where the Regex could return the charactrer position where a pattern starts ?

The Instr method can tell you where in a string (such as the TextArea.Text property) a pattern begins.

ah yes that’s right, it’s not Regex, but the next best thing.

Thank you

demo project: https://www.dropbox.com/s/8rchmjrl6wea5lr/bitbatbut%20updated%202.rbp.zip

screenshot: https://www.dropbox.com/s/gvsrwcdeeolu4ap/bitbatbut%20screenshot.png