Hello there,
could you please Help me,
My perl scrpt is
#if (($infoline =~ /$costCenter/) && !($infoline =~ /_/))
if ($infoline =~ /[^_]$costCenter/)
{
$debugString = $infoline;
myDebug();
$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_postalCode=5 numbers
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?
Thank you,
it tells whether $infoline contains a character other than _ followed by whatever is matched by $costCenter
If there is something wrong in $costCenter, then there is something wrong in the regular expression
0
racheleeAuthor Commented:
Mr OZO,
Thnx a lot for a prompt reply ,
would u please give more explaination about this
>>it tells whether $infoline contains a character other than _ followed by whatever is matched by $costCenter
for example, if $costCenter is X then $infoline =~ /[^_]$costCenter/ it true when $infoline contanins a character other than _ followed by X
if $costCenter is )(** then /[^_]$costCenter/ is an error
0
The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.
One of a set of tools we're offering as a way of saying thank you for being a part of the community.
The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.
One of a set of tools we're offering as a way of saying thank you for being a part of the community.
If there is something wrong in $costCenter, then there is something wrong in the regular expression