Community Patterns

Community Library Entry

0

Regular Expression
Created·2019-03-23 23:10
Flavor·PCRE (Legacy)

/
^(?'file'.+?) \((?'line'\d+)\)(?'char') : ==> (?'msg'.*)$
/
gm
Open regex in editor

Description

This RegEx works nicely in Sublime Text syntax definitions (probably in other places, like Atom, too) without any modification – you might just need to properly escape backslashes.

AutoHotkey does not provide a character number (column number) for its errors, but most places expect it as group #3, so I put it in and left the group blank.

The “Specifically: [...]” part may or may not be matched, depending on how exactly the matching is implemented. In Sublime Text 3 it is not matched.

Submitted by SALZKARTOFFEEEL