[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.
- Regex expression, bcochofel, 2006/12/22
- Re: Regex expression, Peter Dyballa, 2006/12/22
- Re: Regex expression,
rgb <=
- Re: Regex expression, bcochofel, 2006/12/22
- Re: Regex expression, rgb, 2006/12/22
- Re: Regex expression, bcochofel, 2006/12/22
- Re: Regex expression, bcochofel, 2006/12/22
- Re: Regex expression, bcochofel, 2006/12/22
- Re: Regex expression, Kevin Rodgers, 2006/12/22
- Message not available
- Re: Regex expression, rgb, 2006/12/26