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 1031245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T13:53:49+00:00 2026-05-16T13:53:49+00:00

Can some please explain the following regexp, which I found in ediff-trees.el as a

  • 0

Can some please explain the following regexp, which I found in ediff-trees.el as a specification for which files/directories to exclude from its comparison process.

"\\`\\(\\.?#.*\\|.*,v\\|.*~\\|\\.svn\\|CVS\\|_darcs\\)\\'"

Although I am somewhat familiar with regular expressions encountering this elisp string-based variant has thrown me off.

  • 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-16T13:53:50+00:00Added an answer on May 16, 2026 at 1:53 pm

    First thing, remember that elisp’s regexes have to be string-escaped, which created a lot of extra backslashes. Removing them, we get

    \`\(\.?#.*\|.*,v\|.*~\|\.svn\|CVS\|_darcs\)\'
    

    Then, \( and \) mean grouping, “foo\|bar” means “either foo, or bar”.

    So, piece by piece, this regexp matches: either an emacs temporary file (something starting with #, possibly preceded by a period: .?#.), or an RCS file (ending in ,v: .,v), or an emacs backup file (ending in ~: .*~), or an svn directory (.svn), or a cvs directory (CVS), or a darcs directory (_darcs).

    Edit to correct: as andre-r correctly points out, the backtick \` and single quote \’ basically mean “beginning and end of the string” (respectively). So this means that the regexp finds strings which match exactly one of the choices I’ve outlined above (i.e., the string starts, then comes one of those choices, then the string ends). I had previously said they meant quoting, I don’t know what I was thinking :). Thanks andre-r!

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

Sidebar

Related Questions

Can some please explain the behaviour below, where, with a from date of 20060301,
Can some one please explain me the following expression $input =~ m/\G.*?(,|$)/gc || $input
Can someone please explain the following line of code? Is it some kind of
Can some one please explain the usage ! in the following ruby example: def
Can I add Java portlet in sharepoint 2007? If yes, can some please explain
Can some one please explain why this loop never 'breaks' and goes on forever
Please can some one explain the javacv method for the pyrDown() method. I'm trying
Can anyone please explain or suggest some good tutorial for the method of matrix
Can someone please explain why ?___SID=U is appearing in some Magento URLs on my
Can some one please guide me to understand which jar file i need to

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.