I was curious what lib you are using for find and replace (if any) I'm trying to do a substitution like:
document.getElementById('(\w+)').innerHTML = (.+);* for $('#$1').html($2) but don't know if that facility is supported
On Mon, 9 Feb 2009 11:10:34 -0700, Ben West mrgenixus@gmail.com wrote:
I was curious what lib you are using for find and replace (if any) I'm
It's just Scintilla.
trying to do a substitution like:
document.getElementById('(\w+)').innerHTML = (.+);* for $('#$1').html($2) but don't know if that facility is supported
as the manual [1] describes, you want to use \1 to use references. And since you probably already have read the manual section about regexps, you probably also already know that regular expressions work only per line :).
[1] http://geany.org/manual/0.15/#regular-expressions
Regards, Enrico
good call on the manual bit -- only once? what do I need to implement multiple find/replace?
On Mon, Feb 9, 2009 at 11:51 AM, Enrico Tröger enrico.troeger@uvena.dewrote:
On Mon, 9 Feb 2009 11:10:34 -0700, Ben West mrgenixus@gmail.com wrote:
I was curious what lib you are using for find and replace (if any) I'm
It's just Scintilla.
trying to do a substitution like:
document.getElementById('(\w+)').innerHTML = (.+);* for $('#$1').html($2) but don't know if that facility is supported
as the manual [1] describes, you want to use \1 to use references. And since you probably already have read the manual section about regexps, you probably also already know that regular expressions work only per line :).
[1] http://geany.org/manual/0.15/#regular-expressions
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.asc
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Ben West wrote:
good call on the manual bit -- only once? what do I need to implement multiple find/replace?
2. \r and \n are never matched because regular expression searches are made line per line (stripped of end-of-line chars).
So, don't expect to match line break characters, nor using anything like JavaScript RegExp's /m flag! ;)
On Mon, 9 Feb 2009 11:56:07 -0700, Ben West mrgenixus@gmail.com wrote:
good call on the manual bit -- only once? what do I need to implement multiple find/replace?
Er, \1, \2, ...\9. Sorry, I should have used \n in my previous mail. As the manual says, \n can be used for the first nine references. (man, did you really read the few lines? :D)
If nine references are not enough for you, you should start hacking on Scintilla to support more :).
Regards, Enrico
I don't understand your question: (man, did you really read the few lines? :D)
On Mon, Feb 9, 2009 at 12:02 PM, Enrico Tröger enrico.troeger@uvena.dewrote:
On Mon, 9 Feb 2009 11:56:07 -0700, Ben West mrgenixus@gmail.com wrote:
good call on the manual bit -- only once? what do I need to implement multiple find/replace?
Er, \1, \2, ...\9. Sorry, I should have used \n in my previous mail. As the manual says, \n can be used for the first nine references. (man, did you really read the few lines? :D)
If nine references are not enough for you, you should start hacking on Scintilla to support more :).
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.asc
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Mon, Feb 9, 2009 at 12:16 PM, Thomas Martitz < thomas.martitz@fhtw-berlin.de> wrote:
Ben West schrieb:
I don't understand your question: (man, did you really read the few lines? :D)
Why do you quote the whole email if you're pasting the sentence in question anyway? And please stop top-posting.. _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Sorry -- I blame gmail --
On Mon, 9 Feb 2009 12:10:17 -0700, Ben West mrgenixus@gmail.com wrote:
I don't understand your question: (man, did you really read the few lines? :D)
I tried to be funny but obviously failed once more :(.
With 'the few lines' I was referring to the section in the manual about regular expressions where your questions are already answered.
Regards, Enrico