Skip to content

Instantly share code, notes, and snippets.

@Modelizer
Created September 2, 2021 10:16
Show Gist options
  • Save Modelizer/5c780466950c70239e8b5658c37ac3d0 to your computer and use it in GitHub Desktop.
Save Modelizer/5c780466950c70239e8b5658c37ac3d0 to your computer and use it in GitHub Desktop.
Regex to find sentence between HTML tag.
$sentence = new RegExp('>([\w\d\$\.\,\:\-\%\s]+[^\s])\s+</')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment