Regular Expression Anything In Between Two strings

by John H
~1 minute

$pattern = '/(?<=customProgramName=\')(.*?)(?=\')/';

Matches anything after "customProgramName=' " and before the closing " ' ".

Took me forever to figure this out!!!!

Related Articles

Regex: Match everything between two things

Ohh the adventures of regular expressions!!!  I've been beating my head against the wall with...

John H John H
5 minutes

Deploy a Git submodule project on Elastic Beanstalk

Git submodules are a handy way of segmenting modules and plugins in your code into separate Git...

John H John H
4 minutes

Deleting records in AWS Cloud Search

Deleting All Records through SDK Managing documents is sucky in Cloud Search. The CloudSearch...

John H John H
~1 minute