Perl Reguler expression meaning
Posted on 2007-11-16
could you please Help me,
My perl scrpt is
#if (($infoline =~ /$costCenter/) && !($infoline =~ /_/))
if ($infoline =~ /[^_]$costCenter/)
$debugString = $infoline;
$receivedLoginPath = $infoline;
What the regular expression tell in tthis matter?
Because I need to get in the log file is below info,
CTSA1_state=Name of the state.
CTSA1_city=_Name of the city.
CTSA1_company=Name of the Company
CTSA1_sAMAccountName=Some specific account name
CTSA1_scriptPath=\alluser.bat (Specially here instead of just /alluser.bat I should have got Company name/Department/COst center number/alluser.bat)
how I shoul dget it?
Is there anything wrong in regular expression or what?