> -----Original Message-----
> > So what is the special behavior of the ^ symbol when not at 
>> the beginning of the string that occurs when it is not escaped?
> 
> I think it retains its meaning as an assertion that it occurs 
> at the beginning of the line, and so a pattern like "a^b" 
> could never match anything.  

... unless a or b are newlines and you are matching multi-line expressions, 
when ^ and $ match before and after line breaks as well as beginning and end of 
string.

S Ellison

*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to