Skip to content

Instantly share code, notes, and snippets.

@tsabat
Created June 11, 2013 18:45
Show Gist options
  • Save tsabat/5759549 to your computer and use it in GitHub Desktop.
Save tsabat/5759549 to your computer and use it in GitHub Desktop.
str = 'Error on line number: 3. Invalid CSS after " test": expected "{", was ";"'
result = /line number: (\d+)/.match(str)[1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment