-
What’s the best (simple to read, efficient) JavaScript regex to get the first paragraph of an HTML string? I have this one: /<p>((?!(<\/p>)).|\n)+<\/p>/m Live: regexr.com/4pm6n
-
Better: /(<p( [^>]*)?>((?!(<\/p>)).|\n)+<\/p>)/m regexr.com/4pm6n