1. \".*\"
Explanation: Here \" is for " character . is for any character except new line, * is for zero or more so .* means zero or more characters (multiple characters means string)
2. \/\*(.|\n)*\*\/
Explanation: Here \/ is for / character \* is for * character (.|\n) is for any character or linebreak and * is for zero or more so (.|\n)* means zero or more characters including linebreak
If you are directly copieng the regex it may not work since it has color and that color may include a hidden character into the current regex,so please try to type it instead of copy paste,Here is the two answers without any color/bold
1) \".*\"
2) \/\*(.|\n)*\*\/
PS-: If you have any problems/doubts please comment below.Thank you
Get Answers For Free
Most questions answered within 1 hours.