Tag:html5htmljavascript
Article From:https://segmentfault.com/q/1010000012144264
Question:
ESCAPE_RE  = /[-.*+?^${}()|[\]\/\\]/g

This is the source code of the old version of Vue. If you see such a long regular expression, you will be able to explain it.

Answer 0:

Match. * +? * * * () [)] [] / \ these characters

Answer 1:

Match a character in the middle parenthesis.

Leave a Reply

Your email address will not be published. Required fields are marked *