Skip to content

Instantly share code, notes, and snippets.

@ItsJimi
Created November 28, 2017 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ItsJimi/b512370cee48dad9baffa22fab6d93f7 to your computer and use it in GitHub Desktop.
Save ItsJimi/b512370cee48dad9baffa22fab6d93f7 to your computer and use it in GitHub Desktop.
Regex match equ
re1, _ := regexp.Compile(`(\-?[0-9]+|\-?[0-9]+\.[0-9]+)\*X\^[0-2]`)
result := re1.FindAllStringSubmatch(equ[0], -1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment