help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

extract regexp


From: Bruce Ingalls
Subject: extract regexp
Date: Thu, 17 Apr 2003 16:20:14 GMT
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.3) Gecko/20030314

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 via email to

[Prev in Thread] Current Thread [Next in Thread]