how to find spaces with a regex?
Vincent
pros-n-cons at bak.rr.com
Thu Feb 19 16:23:09 UTC 2004
On Thu, 19 Feb 2004 11:11:29 -0400
Trevor Smith <trevor at haligonian.com> 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 at haligonian.com
>
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
for future reference \s means space \t means tab \S means NON-whitespace
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20040219/574ee925/attachment-0002.bin
More information about the users
mailing list