Regular Expression Anything In Between Two strings

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

Matches anything after “customProgramName=’ ” and before the closing ” ‘ “.

Took me forever to figure this out!!!!

You may also like...