You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Ashish Vijaywargiya <as...@hotwaxmedia.com> on 2009/04/01 07:27:57 UTC

Re: How to use Regular Expression for Search & Replace in Eclipse ?

Thanks Jacques.
I will give it a try.

--
Ashish Vijaywargiya

Jacques Le Roux wrote:
> Done at 
> http://docs.ofbiz.org/display/OFBIZ/Eclipse+Tips#EclipseTips-HowtouseRegularExpressionforSearch&ReplaceinEclipse? 
>
>
> Jacques
>
> From: "Jacques Le Roux" <ja...@les7arts.com>
>> Thanks Paul,
>>
>> I think it will be great to share our tips in a wiki page. I will 
>> open one soon...
>>
>> Jacques
>>
>> From: "madppiper" <pa...@mutschler.ch>
>>>
>>> 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.
>>>
>>
>>
>