Skip to content

Instantly share code, notes, and snippets.

@Reizinixc
Created January 28, 2016 06:38
Show Gist options
  • Save Reizinixc/510852e584b602dd675e to your computer and use it in GitHub Desktop.
Save Reizinixc/510852e584b602dd675e to your computer and use it in GitHub Desktop.
C# Stacktrace parser regex
(?: *)at (?:(?<namespace>[\w\d_.]*)\.)?(?<class>[\w\d_.]*(\.[\w\d_.<>]+)?)\.(?<method>[\w\d_\[\]<>]*)\((?:(?<parameter>[\w\d_]+(?:\[\]|&|\*)? [\w\d_]+)(?:, )?)*\)(?: *in *(?<file>[^:]+(?::[^:]+)?))?(?::line *(?<line>\d+))?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment