Hi there,
I'm fairly new to regular expressions, but I have used jEdit for soem time now. I have search online (google) and also around these forums. So far I haven't found any information for what I am looking for. Perhaps it is my lack of experience with RE if so please forgive my ignorance.
I would like to be able to run regular expressions in jEdit as whole expressions, for example. presently to do a complex find and replace I have to type regular expression argument in the search box, And then place a value in the replace box. The problem with this is that I can't use parenthesis () to back-reference a previously reference string.
Programatical example:
s/(<h2>[^<]*./h2>)/<div>\1<p></p></div>/g Search for <h2> and any thing in between this and it's close tag to replaced and included as e.g. find: <h2>Title here</h2> and replace with: <div><h2>Title here</h2><p></p></div> regardless of the value for the content between the <h2> and </h2> strings.
I realize that I can use a macro to complete what I am attempting with RE but that defeats my main purpose of learning RE by experimentation.
Thanks Aaron