Skip to content

Instantly share code, notes, and snippets.

@joshcarp
Created September 15, 2021 12:24
Show Gist options
  • Save joshcarp/4529b2b8d9cbfb05f15de05b61f6106d to your computer and use it in GitHub Desktop.
Save joshcarp/4529b2b8d9cbfb05f15de05b61f6106d to your computer and use it in GitHub Desktop.
put (?s) at the start of the capturing group:
https://stackoverflow.com/questions/20173472/does-go-regexps-any-charcter-match-newline
(?s)\n\[(?P<command>\w*)\]:#\s\((?P<args>(\s*\S*?,?)*)\).*<!--->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment