Question from the RegEx test

Write a regular expression that replaces all tags without content with self-closing tags

Medium

What does this RegEx : /<([^><]+)><\/([^><]+)>/<$1/>/gmi

Author: Nick LAM YEE MANStatus: PublishedQuestion passed 123 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!