From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: tomer <tomer1levin@walla.co.il>
Cc: help-gnu-emacs@gnu.org
Subject: Re: regular expression for special character
Date: Sun, 7 Dec 2008 22:35:35 +0100 [thread overview]
Message-ID: <4FC82FE8-3DA2-4F03-8B01-EA775ED97502@Web.DE> (raw)
In-Reply-To: <e4130871-ada2-4db9-9e1e-4596754b8db8@o40g2000prn.googlegroups.com>
Am 07.12.2008 um 18:53 schrieb tomer:
> i need to filter (blank lines space,tabs,empy line mix of them)
(replace-regexp "^\([ ]+\|\)
" "")
IOW (in other words): replace all occurrences of strings that consist
of a series of one or more SPC or of one or more TAB or a mixture
them or of nothing with nothing.
You can test such regular expressions with isearch-forward-regexp or
isearch-backward-regexp.
BTW, the linefeed you see in my regexp *is* a linefeed.
--
Greetings
Pete
It's not the valleys in life I dread so much as the dips.
– Garfield
next prev parent reply other threads:[~2008-12-07 21:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-07 13:18 regular expression for special character tomer
2008-12-07 14:57 ` Kevin Rodgers
2008-12-07 14:57 ` Kevin Rodgers
[not found] ` <mailman.2141.1228662014.26697.help-gnu-emacs@gnu.org>
2008-12-07 17:53 ` tomer
2008-12-07 21:35 ` Peter Dyballa [this message]
2008-12-09 14:28 ` Kevin Rodgers
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FC82FE8-3DA2-4F03-8B01-EA775ED97502@Web.DE \
--to=peter_dyballa@web.de \
--cc=help-gnu-emacs@gnu.org \
--cc=tomer1levin@walla.co.il \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.