begin  quoting Todd Walton as of Thu, Feb 01, 2007 at 08:24:25AM -0600:
> On 2/1/07, James G. Sack (jim) <[EMAIL PROTECTED]> wrote:
> >Bob La Quey wrote:
> >> Does the string 9][A occur anywhere other than embedded in the
> >> string ^[0-9][A-Z]   ?
> >
> >The '[0-9]' and '[A-Z]' are standard regex notations for character
> >classes, respectively any one of the 10 digits, and any one of the 26
> >cap-letters.
> 
> Assuming they were literals is just as good as assuming they're regex,
> especially since Ralph indicated that the caret was literal, and not
> the front-of-line indicator.

Indeed. I admired BLQ's take on the question ("What? Oh. Why didn't I
think of that?"), as it was the _simplest_ interpretation (and reduces
the question to one of appropriate escaping).

I used (!) to be a Formal Automata geek, so I tend to interpret things
that look like regex as regex. As you saw.

-- 
DFA = <E,S,T,s,d>
Stewart Stremler


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to