Warp wrote:
> Darren New <dne### [at] san rr com> wrote:
>> http://swtch.com/~rsc/regexp/regexp1.html
>
>> Or, in your language
>> many (char 'a')
>> many (char 'a')
>> many (char 'a')
>> char 'a'
>> char 'a'
>> char 'a'
>
> I think you are confusing "a?" with "a*" (the webpage in question uses
> the former).
It works either way. The point is to make the first thing (A* or A?) match
what needs to be left behind to match the second thing (A). Then you have to
backtrack to get a match.
--
Darren New, San Diego CA, USA (PST)
Serving Suggestion:
"Don't serve this any more. It's awful."
Post a reply to this message
|