Skip to content
Prev 314806 / 398503 Next

pattern matching

"$" has a special meaning (end-of-string) in regular expressions, so you can either escape it with "\\" or not use regular expressions in regexpr():
[1] 2
attr(,"match.length")
[1] 1
attr(,"useBytes")
[1] TRUE
[1] 2
attr(,"match.length")
[1] 1
attr(,"useBytes")
[1] TRUE


Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com