M
mani
Hi,
I have a problem with finding the regexp for this
Let us say
$x="# I have been";
if($x!~/^#/)
{
#stuff here
}
will make the code not get into the control loop for the current value
of x because $x starts with #. This is fine but if i give
$x=" #I have been\n";
then the if condition would be true. I want to avoid this I want to
ignore anything that starts with a <space># or # at the start. How do
i do it
I tried /s*^#/ which does not give what i want....
please help me....
I have a problem with finding the regexp for this
Let us say
$x="# I have been";
if($x!~/^#/)
{
#stuff here
}
will make the code not get into the control loop for the current value
of x because $x starts with #. This is fine but if i give
$x=" #I have been\n";
then the if condition would be true. I want to avoid this I want to
ignore anything that starts with a <space># or # at the start. How do
i do it
I tried /s*^#/ which does not give what i want....
please help me....