Skip to content
Prev 141872 / 398498 Next

why does regexpr not work with '.'

In a regular expression, '.' matches any character, which will be the
first one.  If you want to match a period, you have to escape it:
[1] 1
attr(,"match.length")
[1] 1
[1] 4
attr(,"match.length")
[1] 1
On Tue, Apr 15, 2008 at 6:27 AM, Jonathan Williams
<jonathan.williams at dpag.ox.ac.uk> wrote: