Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6114809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:01:09+00:00 2026-05-23T15:01:09+00:00

Unless I am missing something, this regex seems pretty straightforward: grepl(Processor\.[0-9]+\..*Processor\.Time, names(web02)) However, it

  • 0

Unless I am missing something, this regex seems pretty straightforward:

grepl("Processor\.[0-9]+\..*Processor\.Time", names(web02))

However, it doesn’t like the escaped periods, \. for which my intent is to be a literal period:

Error: '\.' is an unrecognized escape in character string starting "Processor\."

What am I misunderstanding about this regex syntax?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:01:10+00:00Added an answer on May 23, 2026 at 3:01 pm

    My R-Fu is weak to the point of being non-existent but I think I know what’s up.

    The string handling part of the R processor has to peek inside the strings to convert \n and related escape sequences into their character equivalents. R doesn’t know what \. means so it complains. You want to get the escaped dot down into the regex engine so you need to get a single \ past the string mangler. The usual way of doing that sort of thing is to escape the escape:

    grepl("Processor\\.[0-9]+\\..*Processor\\.Time", names(web02))
    

    Embedding one language (regular expressions) inside another language (R) is usually a bit messy and more so when both languages use the same escaping syntax.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Unless I am missing an obvious built-in method, what is the quickest way to
This is really strange but this code is working fine unless the value entered
Update: Now that it's 2016 I'd use PowerShell for this unless there's a really
Most probably I'm missing something obvious here, but why do I need to call
I'm working with an already built ASP.Net custom date control, it seems pretty simple,
I feel like this is something I should already know, but I'm just not
Is there a way to tell subversion update/merge unless it would cause a conflict?
I generaly disable viewstate for my ASP.net controls unless I explicitly know I am
I'm trying to figure out how to restrict access to a page unless the
I'm fairly new to Java (been writing other stuff for many years) and unless

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.