0

Could Someone Explain what this Regex does?

?['\"](.*)['\"] ?
Zacharia Mwangi
  • 53
  • 3
  • 10

1 Answers1

0

Explaination :

  1. ? and ? may be separators here as ? in beginning is a syntax error
  2. ['\"] : matches ' or "
  3. (.*) : captures anything except new line
  4. ['\"] : matches ' or "

You can check it further on http://www.regextester.com/

Somil
  • 567
  • 5
  • 13