atemon has asked for the wisdom of the Perl Monks concerning the following question:
There are 2 strigs, say
I want to search for $y in $x regardless of the spaces and case and retrieve the matched string in $x. In $x, the extra character comes can be space (only) and it can come any number of times like "My Na me"$x="My name is VC"; $y="myname";
We can match by making a temp string and removing space and match. Then I cant get the matching string :(
Thanks in advance.
--VC
There are three sides to any argument.....
your side, my side and the right side.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Regx: match without regarding space and case
by Sidhekin (Priest) on Sep 13, 2007 at 06:06 UTC | |
Re: Regx: match without regarding space and case
by GrandFather (Saint) on Sep 13, 2007 at 07:14 UTC | |
by Skeeve (Parson) on Sep 13, 2007 at 10:47 UTC | |
Re: Regx: match without regarding space and case
by Skeeve (Parson) on Sep 13, 2007 at 08:44 UTC | |
Re: Regx: match without regarding space and case
by narainhere (Monk) on Sep 13, 2007 at 16:38 UTC | |
by Roy Johnson (Monsignor) on Sep 13, 2007 at 19:59 UTC |
Back to
Seekers of Perl Wisdom