On Mon, Dec 27, 2010 at 10:39 PM, Alex Shinn
<address@hidden> wrote:
2010/12/28 Matt Welland <address@hidden>:
> 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