From: Ian Swainson <ian.swainson@clients.ie>
Subject: RE-Builder and grep
Date: Wed, 01 May 2002 12:54:46 +0100 [thread overview]
Message-ID: <uit68ozg9.fsf@clients.ie> (raw)
Hi,
I'm trying to learn regular expressions, and have been using the re-builder mode
in Emacs.
I have a text file (greptest.txt) containing the following lines:
THIS IS A TEST
this is a test
this is another test
This is a test
This is A test
this is a Test
If I do grep -e "[A-Z]" greptest.txt
The following lines are returned, as expected:
THIS IS A TEST
This is a test
This is A test
this is a Test
But if I use emacs re-builder pasting the text into a buffer, *all* lines are
highlighted, even those that don't contain any uppercade characters. How can I
make re-builder's regular expressions work like greps, and can anyone tell me
why there is the difference?
Cheers,
Ian
--
fortune says:
Documentation is like sex: when it is good, it is very, very good; and
when it is bad, it is better than nothing.
-- Dick Brandon
~~~~~~~~~~~ Made in Ireland using GNU Emacs ~~~~~~~~~~~
Ian Swainson Kia Ora! ian@qui-oui.com
~~~~~~~~~~~~~~~ http://www.qui-oui.com ~~~~~~~~~~~~~~~~
next reply other threads:[~2002-05-01 11:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-01 11:54 Ian Swainson [this message]
2002-05-06 8:54 ` RE-Builder and grep Alexander Koptelov
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uit68ozg9.fsf@clients.ie \
--to=ian.swainson@clients.ie \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.