Re: how to find spaces with a regex?

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

 



On Thu, 19 Feb 2004 11:11:29 -0400
Trevor Smith <trevor@xxxxxxxxxxxxxx> wrote:

> On February 18, 2004 11:28 pm, Trevor Smith wrote:
> 
> > can NOT figure out how to use a regex to search for multiple spaces -- for
> 
> Sorry, I figured it out.
> 
>    grep ' {1,}' filename
> 
> does not work
> 
>    grep ' \{1,\}' filename
> 
> does work. I was forgetting to escape the { and } characters.
> 
> -- 
>  Trevor Smith    |    trevor@xxxxxxxxxxxxxx 
> 
> 
> -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

for future reference \s means space \t means tab \S means NON-whitespace

Attachment: pgpKmmHiJHn8r.pgp
Description: PGP signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux