When I have done regexp search and replace operations on some of my own
code I like to codify it in a python script. Sometimes the script may
contain the list of files that are to be worked on, sometimes I just ask
the script to glob a pattern recursively acting on files. Recently I
have also used the same sort of technique for transforming xml data
files using the standard xml processing lib's in python to help myself
with customer data import tasks.

 

Jacques Le Roux wrote:
> Thanks Paul,
>
> I think it will be great to share our tips in a wiki page. I will open
> one soon...
>
> Jacques
>
> From: "madppiper" <[email protected]>
>>
>> Well, the feature itself uses the standard java regular expressions
>> and is
>> actually fairly simple to understand. I would recommend to have a go at
>> regular expressions before trying that feature. For instance, you can
>> try
>>
>> http://www.gskinner.com/RegExr/
>> or
>> http://www.regextester.com
>>
>>
>> to test the results. Another great read is also:
>>
>> http://java.sun.com/developer/technicalArticles/releases/1.4regex/
>>
>> Be aware that there are different types of regexp. So not all
>> commands may
>> work (luckily, eclipse displays the available commands on the input
>> dialog)
>>
>>
>> Btw, a great one I use quite often is this: <TAG\b[^>]*>(.*?)</TAG>
>> It'll grab the start and ending ending of a specified html tag. You
>> can then
>> use the select the inner element using $1 :)
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/How-to-use-Regular-Expression-for-Search---Replace-in-Eclipse---tp22593950p22596320.html
>>
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>
>
>
>

-- 
Stephen P Rufle
[email protected]
H1:480-626-8022
H2:480-802-7173
Yahoo IM: stephen_rufle
AOL IM: stephen1rufle

Reply via email to