[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regexp
"Immanuel Litzroth" <immanuel_litzroth@hotmail.com> writes:
> if I try
> (regexp-match (regexp "a*") "aaaa")
> Mzscheme v. 103 returns
> ("") (on HP-UX and Windows95)
>
> The manual says :
> The first string in this list is the portion of string that matched pattern.
> If two portions of string can match pattern, then the earliest and longest
> match is found.
string "" is really _earliest_ match because
a* means `zero or more occurences of 'a'.
regexp "aa*" will work exactly as you expect
> Why don't I get ("aaaa") as a result (as regular expressions in emacs seem
> to do?
> Immanuel
>
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
- Follow-Ups:
- Re: regexp
- From: Bertrand Petit <plt-s@phoe.frmug.org>
- References:
- regexp
- From: "Immanuel Litzroth" <immanuel_litzroth@hotmail.com>