From: "rgb" <rbielaws@i1.net>
Subject: Re: Regex expression
Date: 22 Dec 2006 04:48:48 -0800 [thread overview]
Message-ID: <1166791728.630760.111710@42g2000cwt.googlegroups.com> (raw)
In-Reply-To: <1166790584.269130.11160@h40g2000cwb.googlegroups.com>
bcochofel wrote:
> I'm trying to match the beginning of all lines that have tab|space
> chars and I'm using this:
>
> ^[ \t]*
>
> But [ \t]* doesn't match spaces or tabs, matchs spaces and letter t...
> Am I missing something?
Depends on if you're typing in the regexp interactively or
coding a routine to be loaded. In a file, you're above syntax
should work.
If you're responding to an interactive prompt then you don't
use \t syntax (nor do you need to double \\ when
you want to search for \). Use C-q C-i or C-q C-TAB to insert an
actual tab character.
next prev parent reply other threads:[~2006-12-22 12:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-22 12:29 Regex expression bcochofel
2006-12-22 12:48 ` rgb [this message]
2006-12-22 12:57 ` bcochofel
2006-12-22 13:52 ` rgb
2006-12-22 14:23 ` bcochofel
2006-12-22 14:23 ` bcochofel
2006-12-22 14:26 ` bcochofel
2006-12-22 19:19 ` Kevin Rodgers
[not found] ` <mailman.2229.1166829311.2155.help-gnu-emacs@gnu.org>
2006-12-26 14:29 ` rgb
2006-12-22 13:24 ` Peter Dyballa
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=1166791728.630760.111710@42g2000cwt.googlegroups.com \
--to=rbielaws@i1.net \
/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).