suniln has asked for the wisdom of the Perl Monks concerning the following question:
What is wrong in this reg exp... Thanks, SunilC:\abc\dfg C:\abc\dfg\#@$#@$@ $key="C:\abc\dfg"; if( $line =~ /$key\\\S+\\/){ # if this is not end node ($pat)=$line=~/$key\\(\S+)\\/; }else{ # if end node ($last_node)=$line=~/$key\\(.*)/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: unable chec whether the word is intermediate or last word in a sentence
by ikegami (Patriarch) on Sep 08, 2010 at 02:11 UTC | |
|
Re: unable chec whether the word is intermediate or last word in a sentence
by kennethk (Abbot) on Sep 07, 2010 at 22:34 UTC | |
|
Re: unable chec whether the word is intermediate or last word in a sentence
by dasgar (Priest) on Sep 07, 2010 at 22:38 UTC | |
| |
|
Re: unable chec whether the word is intermediate or last word in a sentence
by roboticus (Chancellor) on Sep 07, 2010 at 22:40 UTC |