mdunnbass has asked for the wisdom of the Perl Monks concerning the following question:
For instance, I want this to match:
$string1 = 'ABhere is intervening textC D',
and so would this:
$string2 = 'A B C, lots of text and numbers and equals and slashes DEFG'
but this would not:
$string3 = 'ABhere IS intervening TEXTC D''
I am guessing that simply specifying =~ /[A-Z]$x/gx wouldn't do it. That would just specify that the match had to be uppercase, which is redundant, given the string definition and lack of a /i, right?
If anyone could please just point me to what I might have missed, or offer advice, I'd really appreciate it.
Thanks
Matt
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: RegEx ignoring intervening characters?
by ikegami (Patriarch) on Jan 19, 2007 at 20:53 UTC | |
by mdunnbass (Monk) on Jan 19, 2007 at 21:05 UTC | |
by imp (Priest) on Jan 19, 2007 at 21:12 UTC | |
by webfiend (Vicar) on Jan 19, 2007 at 21:59 UTC | |
Re: RegEx ignoring intervening characters?
by gaal (Parson) on Jan 19, 2007 at 20:55 UTC | |
Re: RegEx ignoring intervening characters?
by imp (Priest) on Jan 19, 2007 at 20:59 UTC | |
by ww (Archbishop) on Jan 19, 2007 at 22:17 UTC | |
Re: RegEx ignoring intervening characters?
by diotalevi (Canon) on Jan 19, 2007 at 20:53 UTC | |
Re: RegEx ignoring intervening characters?
by Cody Pendant (Prior) on Jan 21, 2007 at 02:04 UTC | |
by mdunnbass (Monk) on Feb 01, 2007 at 15:39 UTC |