synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hiranya Jayathilaka <hiranya...@gmail.com>
Subject Re: Introducing regex flag support To the Filter mediator
Date Thu, 13 Jan 2011 03:01:06 GMT
On Thu, Jan 13, 2011 at 1:01 AM, Ruwan Linton <ruwan.linton@gmail.com>wrote:

> Cool, any way good that it came along so that we figured out how to do it
> with the filter mediator.


+1 and thanks Charith for the info

Thanks,
Hiranya


>
> Thanks,
> Ruwan
>
>
> On Wed, Jan 12, 2011 at 6:06 PM, Charith Wickramarachchi <
> charith.dhanushka@gmail.com> wrote:
>
>>
>>
>>
>> On Wed, Jan 12, 2011 at 4:44 PM, Hiranya Jayathilaka <
>> hiranya911@gmail.com> wrote:
>>
>>>
>>>
>>> On Wed, Jan 12, 2011 at 3:16 PM, Charith Wickramarachchi <
>>> charith.dhanushka@gmail.com> wrote:
>>>
>>>
>>>>>>
>>>> AFAIK it can't can you send a pointer for this ? Example : say i want to
>>>> match the regex  .*Hello.* in case insensitive way. So in that case how
>>>> filter mediator specify it ? In regular expression ? ( thease flags are wel
>>>> kown ones when it comes to regex compilers :))
>>>>
>>>
>>> I could be wrong, but I think we can add the prefix "?i" to the regex to
>>> make it case insensitive.
>>>
>>>
>> Hi Hiranya,
>>
>> That prefix (?i) worked . According to the
>> http://download.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html
>> in Java we can use those to over come those limitations .
>>
>> So i think we can avoid using those flag mode using that prefixes.
>>
>> FYI :
>> CASE_INSENSITIVE  (?i)
>>
>> MULTILINE (?m)
>>
>> DOTALL (?s)
>>
>> UNICODE_CASE (?u)
>>
>>
>> Above prefixes can be used in regex to avoid compiling  using the flag
>>
>>
>> thanks ,
>> Charith
>>
>>
>>
>>> Thanks,
>>> Hiranya
>>>
>>> --
>>> Hiranya Jayathilaka
>>> Senior Software Engineer;
>>> WSO2 Inc.;  http://wso2.org
>>> E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
>>> Blog: http://techfeast-hiranya.blogspot.com
>>>
>>
>>
>>
>> --
>> Charith Dhanushka Wickramarachchi
>> http://charithwiki.blogspot.com/
>>
>>
>
>
> --
> Ruwan Linton
> Software Architect & Product Manager
> WSO2 Inc.; http://wso2.org
>
> Lean . Enterprise . Middleware
>
> phone: +1 408 754 7388 ext 51789
> email: ruwan@wso2.com; cell: +94 77 341 3097
> blog: http://blog.ruwan.org
> linkedin: http://www.linkedin.com/in/ruwanlinton
> google: http://www.google.com/profiles/ruwan.linton
> tweet: http://twitter.com/ruwanlinton
>



-- 
Hiranya Jayathilaka
Senior Software Engineer;
WSO2 Inc.;  http://wso2.org
E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com

Mime
View raw message