Skip to main content
added 8 characters in body
Source Link
zylstra
  • 810
  • 2
  • 9
  • 22

For PHP, "it is always safe to precede a non-alphanumeric with "" to specify that it stands for itself." - http://php.net/manual/en/regexp.reference.escape.php.

Except if it's a " or '. :/

To escape regex pattern variables (or partial variables) in PHP use preg_quote()

For PHP, "it is always safe to precede a non-alphanumeric with "" to specify that it stands for itself." - http://php.net/manual/en/regexp.reference.escape.php.

Except if it's a " or '. :/

To escape regex pattern variables (or partial variables) use preg_quote(

For PHP, "it is always safe to precede a non-alphanumeric with "" to specify that it stands for itself." - http://php.net/manual/en/regexp.reference.escape.php.

Except if it's a " or '. :/

To escape regex pattern variables (or partial variables) in PHP use preg_quote()

added 79 characters in body
Source Link
zylstra
  • 810
  • 2
  • 9
  • 22

For PHP, "it is always safe to precede a non-alphanumeric with "" to specify that it stands for itself." - http://php.net/manual/en/regexp.reference.escape.php. Except

Except if it's a " or '. :/

To escape regex pattern variables (or partial variables) use preg_quote(

For PHP, "it is always safe to precede a non-alphanumeric with "" to specify that it stands for itself." - http://php.net/manual/en/regexp.reference.escape.php. Except if it's a " or '. :/

For PHP, "it is always safe to precede a non-alphanumeric with "" to specify that it stands for itself." - http://php.net/manual/en/regexp.reference.escape.php.

Except if it's a " or '. :/

To escape regex pattern variables (or partial variables) use preg_quote(

Source Link
zylstra
  • 810
  • 2
  • 9
  • 22

For PHP, "it is always safe to precede a non-alphanumeric with "" to specify that it stands for itself." - http://php.net/manual/en/regexp.reference.escape.php. Except if it's a " or '. :/