unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* extract regexp
@ 2003-04-17 16:20 Bruce Ingalls
  2003-04-17 17:11 ` lawrence mitchell
  0 siblings, 1 reply; 6+ messages in thread
From: Bruce Ingalls @ 2003-04-17 16:20 UTC (permalink / 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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-04-22 17:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-17 16:20 extract regexp Bruce Ingalls
2003-04-17 17:11 ` 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

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).