chrism01 has asked for the wisdom of the Perl Monks concerning the following question:
Given:if( $str1 =~ /^$str2/ ) { print "match\n"; } else { print "nomatch\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex Start Anchor with variables
by Samy_rio (Vicar) on Oct 05, 2006 at 05:52 UTC | |
|
Re: Regex Start Anchor with variables
by jwkrahn (Abbot) on Oct 05, 2006 at 05:55 UTC | |
|
Re: Regex Start Anchor with variables
by ikegami (Patriarch) on Oct 05, 2006 at 06:13 UTC | |
|
Re: Regex Start Anchor with variables
by japhy (Canon) on Oct 05, 2006 at 12:20 UTC | |
by Hue-Bond (Priest) on Oct 05, 2006 at 13:26 UTC | |
by japhy (Canon) on Oct 05, 2006 at 20:07 UTC | |
|
Re: Regex Start Anchor with variables
by chrism01 (Friar) on Oct 05, 2006 at 06:05 UTC | |
by Hofmator (Curate) on Oct 05, 2006 at 12:20 UTC |