Ah, ok. Different from 3.4. Thanks. On Mon, Dec 27, 2010 at 10:39 PM, Alex Shinn <[email protected]> wrote:
> 2010/12/28 Matt Welland <[email protected]>: > > I'm using the regex egg in 4.6.3 > > (use regex) > > > > Regexs seem to have implict ^ and $ at the start and end. This differs > most > > most regex implementations I'm familiar with. > > > > "^\\s+#" should match the line " # Hello" but does not. > > "match" matches the entire string, "search" searches for > a match anywhere in the string: > > #;4> (string-match "^\\s+#" " # Hello") > #f > #;5> (string-search "^\\s+#" " # Hello") > (" #") > #;6> > > -- > Alex >
_______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
