I wish to match a filename with column and line info, eg.
path1path2a_file.ts:17:9 //what i want to achieve: match: a_file.ts match: 17 match: 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