From: Neon Absentius <absent@sdf.lonestar.org>
Subject: Re: Case sensitive regexp
Date: Mon, 23 May 2005 04:39:33 +0000 [thread overview]
Message-ID: <20050523043933.GB12434@SDF.LONESTAR.ORG> (raw)
In-Reply-To: <878y26oe10.fsf@thalassa.informatimago.com>
On Mon, May 23, 2005 at 04:46:19AM +0200, Pascal Bourguignon wrote:
> Neon Absentius <absent@sdf.lonestar.org> writes:
>
> > Hello,
> >
> > how can I make sure that the regular expressions are case sensitive?
> > By looking at the manual I thought that if the expression contains
> > a capital letter then it automatically is case sensitive. However
> > evaluating (looking-at "A") when the point is before an "a" returns
> > true.
>
> What regular expressions?
>
>From the elisp manual
,----
|- Function: looking-at regexp
| This function determines whether the text in the current buffer
| directly following point matches the regular expression REGEXP.
`----
So, since the regular expression "A" matches only the string "A" I
assumed that (looking-at "A") would return true only if the character
following point was "A".
> M-x apropos RET case-fold RET
>
> -->
> isearch-toggle-case-fold
> toggle-case-fold-search
>
> default-case-fold-search
>
Thanks. That did it.
--
Charity in capitalism is like urinating to extinguish a forest fire.
-- Neon Absentius
absent a.in.cirle sdf period lonestar period org
SDF Public Access UNIX System - http://sdf.lonestar.org
next prev parent reply other threads:[~2005-05-23 4:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1370.1116812606.25862.help-gnu-emacs@gnu.org>
2005-05-23 2:46 ` Case sensitive regexp Pascal Bourguignon
2005-05-23 4:39 ` Neon Absentius [this message]
2005-05-23 1:26 Neon Absentius
2005-05-23 17:18 ` Kevin Rodgers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050523043933.GB12434@SDF.LONESTAR.ORG \
--to=absent@sdf.lonestar.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).