On Wed, Jan 12, 2011 at 4:44 PM, Hiranya Jayathilaka <[email protected]>wrote:
> > > On Wed, Jan 12, 2011 at 3:16 PM, Charith Wickramarachchi < > [email protected]> 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: [email protected]; Mobile: +94 77 633 3491 > Blog: http://techfeast-hiranya.blogspot.com > -- Charith Dhanushka Wickramarachchi http://charithwiki.blogspot.com/
