[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regex expression

From: rgb
Subject: Re: Regex expression
Date: 22 Dec 2006 04:48:48 -0800
User-agent: G2/1.0

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]