unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tim Johnson <tim@johnsons-web.com>
Subject: re-search beginning of line or whitespace
Date: Tue, 1 Nov 2005 17:39:46 -0900	[thread overview]
Message-ID: <20051102023946.GB1791@johnsons-web.com> (raw)
In-Reply-To: <20051101152338.3161.qmail@mail.jfudy.com>

Hi:
    I'd like to find the nearest previous whitespace *or*
beginning of line;
(re-search-backward "^")  ;; gets me to the beginning of
                          ;; the line
(re-search-backward "[\t ]") ;; seems to find the nearest
                             ;; previous whitespace
;; but can't seem to combine them properly
(re-search-backward "^\|[\t ]") ;; gives me an error

What am I leaving out.
TIA
tim

-- 
Tim Johnson <tim@johnsons-web.com>
      http://www.alaska-internet-solutions.com

  reply	other threads:[~2005-11-02  2:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-01 15:23 ^[$B:G?78D<<3+J|^[(B info
2005-11-02  2:39 ` Tim Johnson [this message]
2005-11-02  3:23   ` re-search beginning of line or whitespace Neon Absentius
2005-11-02 17:19     ` Tim Johnson
2005-11-03 20:33       ` Neon Absentius
2005-11-04 16:38         ` Info [was Re: re-search beginning of line or whitespace] Tim Johnson
     [not found]       ` <mailman.13851.1131050044.20277.help-gnu-emacs@gnu.org>
2005-11-04  1:05         ` re-search beginning of line or whitespace Johan Bockgård
2005-11-04  1:47           ` Neon Absentius

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051102023946.GB1791@johnsons-web.com \
    --to=tim@johnsons-web.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).