search

Home  >  Q&A  >  body text

javascript - Help with regular expression writing

<p ..属性...>&nbsp;&nbsp;&nbsp;  </p>
任意个&nbsp;,可能有空格,去掉这行

I really can’t write it
<pStart </p>End Then I won’t know how to do it
/^<p ( ) </p>$/ig

天蓬老师天蓬老师2794 days ago854

reply all(1)I'll reply

  • typecho

    typecho2017-06-15 09:25:30

    ^<p[^>]*>( *&nbsp; *)+<\/p>$
    

    http://regexr.com/3g5lk

    reply
    0
  • Cancelreply