Skip to content

Instantly share code, notes, and snippets.

@heaversm
Last active August 9, 2022 16:30
Embed
What would you like to do?
regex: wrap all text inside matching tags
  • Find: <p class="italic text-center">(.+?)<\/p>
  • Replace: <p class="italic text-center"><time class="dt-published" datetime="$1">$1</time></p>
  • Example: <p class="italic text-center">03/01/2015</p>
  • Result: <p class="italic text-center"><time class="dt-published" datetime="03/01/2015">03/01/2015</time></p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment