Regex: match patterns starting from the end of string

I wish to match a filename with column and line info, eg.


//what i want to achieve:
match[1]: a_file.ts
match[2]: 17
match[3]: 9

This string can have garbage before and after the pattern, like

(at somewhere: path1path2a_file.ts:17:9 something)

What I have now is this regex, which manages to match column and line, but I got stuck on filename capturing part.. I guess negative lookahead is the way to go, but it seems to match all previous groups and garbage text in the end of string.


Here’s a link to current implementation regex101

Read more here: Source link