I'm using preg_match to search and find values stored in other scripts.
Specifically, it reads in ~100 files and looks for a line that assigns a value to a variable called $appname.
This seems to work fine for all of the files except for 2 of them.
The following regular expression:
if (preg_match ("/apname\s?=\s?\"(.*)\";$/",$fline,$match)){
applied to :
$appname = "AD container move";
gives me what I want... AD container move.
but it doesnt "match" anything if applied to :
$appname = "Generic Mailbox Account";
Does anyone know why???
EDIT: that regular expression got beat up when i posted it... those s's are supposed to be escaped.