Skip to content

Instantly share code, notes, and snippets.

@haroldfredshort
Last active June 22, 2016 04:24
Show Gist options
  • Save haroldfredshort/22fb80d7c28d0b8b80157dcb47a19c58 to your computer and use it in GitHub Desktop.
Save haroldfredshort/22fb80d7c28d0b8b80157dcb47a19c58 to your computer and use it in GitHub Desktop.
Regex for matching text within an span, which may include newlines and variable spacing, and append a new element after
Find: (>parse[\s]+?error.?</span>)
Replace: $1 (<dfn data-x="parse-error-"></dfn>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment