unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Bruce Ingalls <bingalls@CUT-this-SPAM-BLOCK.fit-zones.com>
Subject: extract regexp
Date: Thu, 17 Apr 2003 16:20:14 GMT	[thread overview]
Message-ID: <2vAna.20416$TR5.13296@twister.nyc.rr.com> (raw)

I am trying to read a server name from Mozilla's prefs.js into a variable.
The format of the string is

user_pref("mail.server.server1.hostname", "pop.server.com");

So the regular expression is something like
user_pref\\("mail\\.server\\.server1\\.hostname", "([^"]+)"\\);

How do I, for this case, read the file prefs.js, and load pop.server.com 
into
a variable, "my-server"?

Thanks ahead.

             reply	other threads:[~2003-04-17 16:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-17 16:20 Bruce Ingalls [this message]
2003-04-17 17:11 ` extract regexp lawrence mitchell
2003-04-17 17:31   ` Kevin Rodgers
2003-04-22 14:08     ` Bruce Ingalls
2003-04-22 16:28       ` Kevin Rodgers
2003-04-22 17:31         ` Bruce Ingalls

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='2vAna.20416$TR5.13296@twister.nyc.rr.com' \
    --to=bingalls@cut-this-spam-block.fit-zones.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).