Jump to content

Single quote and double quotes difference ?


Dareros

Recommended Posts

There are no “single-quoted regexes” or “double-quoted regexes”.

 

What you have there are two different string expressions which are parsed according to the usual rules. In your case, the result is the same. The content of the string is then used as a regex. If the conents were different, then of course you'd have two different regexes. But since the content is the same, it's the same regex, regardless of whether it comes from a single-quoted string or a double-quoted string.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.