Re: RegEx stuff

2003-07-07 Thread David Storrs
On Sat, Jul 05, 2003 at 09:06:53AM -0700, Skot wrote: > Hello, > > I want to search a string for matching content, > not quite getting it. > > something like: > > if ($myInputLine =~ m/.\123\.222/) { ... } Your regex consists of 6 atoms, which must be matched in the precise order in which they

RE: RegEx stuff

2003-07-07 Thread Dan Muey
> Hello, Howdy > > I want to search a string for matching content, > not quite getting it. > > something like: > > if ($myInputLine =~ m/.\123\.222/) { ... } > > this doesn't work of course, but is there a way to > do this? Do what? This will return true if the line has [one or none of anyth

Re: RegEx stuff

2003-07-07 Thread David Storrs
On Mon, Jul 07, 2003 at 11:46:06AM -0700, David Storrs wrote: > On Sat, Jul 05, 2003 at 09:06:53AM -0700, Skot wrote: > > > > if ($myInputLine =~ m/.\123\.222/) { ... } > > > Your regex consists of 6 atoms, which must be matched in the precise > order in which they appear in order for the match

Re: RegEx stuff

2003-07-05 Thread Michael Pohl
Hi, the "\1" in your Regex stands for repetition of a former match which you catched in the same Regex, but in your case there isn't one. You didn't descibe what you really want to match, in case you want these digits try this: m/\.123\.222/ if you just want 3 digits with a dot in front just r

RegEx stuff

2003-07-05 Thread Skot
Hello, I want to search a string for matching content, not quite getting it. something like: if ($myInputLine =~ m/.\123\.222/) { ... } this doesn't work of course, but is there a way to do this? TIA Skot. -- Skot. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma