From: Shajith C T Date: 2007-07-06T15:06:02+09:00 Subject: Re: Regex: What does the ^ do? What is it called? ------=_Part_47606_24580436.1183701950052 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, On 7/6/07, Al Cholic wrote: > > > > Why do these two statements return nil and how does the "anchor" work > exactly? > > Can someone please clarify? > > In addition to the answers already given, maybe you should check out this page: http://www.regular-expressions.info/anchors.html I've found the parent site is a pretty decent reference for regular expressions in general. Shajith PS: Also note that the '^' character has a different meaning when used in a character class. Read about them here: http://www.regular-expressions.info/charclass.html ------=_Part_47606_24580436.1183701950052--