Christmas ’22

December 22nd, 2022

Targeting a string between two slashes with PHP & Regex

December 16th, 2022

To create a regular expression that targets a string between two forward slashes (/) on either side in PHP, you can use the following pattern: This regular expression uses the preg_match() function in PHP to search for a string that is surrounded by two forward slashes. The .*? part of the pattern matches any character […]

To Santa

December 12th, 2022