OK, you have been told about square brackets that create a character class. Just a small additional point to clarify. I am just wondering if you really want the double quotes. If you want to match the string with the quotes, then leave them in your regex, but it you added the quotes because you thought that were necessary to quote the string in your program, then removes them, they are not necessary. (I hope this is clear.)
In brief, /foo/ will match the string foo as well as the string "foo", but the /"foo"/ regex will not match the foo string, but only a string containing "foo".
And there is no need to escape the double quotes with a backslash.
In reply to Re: Match entire string, not just first character
by Laurent_R
in thread Match entire string, not just first character
by SuzuBell
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |