in reply to Re: Re: Re: Another regexp question
in thread Another regexp question
So what I am reading between the lines here is the OR ability in regex.. which I iether never knew, or knew and forgot.
So the next question (and you dont have to answer it cos just pondering outloud) is: where does the OR finish and the next thing begin?
Would I need to put ^ infront of each OR case of I want them to match at the beginning of the line only?$string = 'this is a bing'; # sample strings.. $string = 'bing is my name'; $string = 'cows go bonging'; $string = 'cows go bang99'; $string =~ m/^bing|bong|bang\d\d/;
___ /\__\ "What is the world coming to?" \/__/ www.wolispace.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Another regexp question
by Roger (Parson) on Nov 21, 2003 at 03:53 UTC | |
|
Re: Re: Re: Re: Re: Another regexp question
by davido (Cardinal) on Nov 21, 2003 at 04:01 UTC | |
by wolis (Scribe) on Nov 24, 2003 at 02:54 UTC |