Hi Charith, On Wed, Jan 12, 2011 at 11:56 AM, Charith Wickramarachchi < charith.dhanus...@gmail.com> wrote:
> Hi , > > If we look at the current Synapse filter mediator it does not support regex > based filtering for multi-line Strings. > IMO having that feature is useful since there are scenarios where we need > to do reg-ex filtering in multi-line Strings in message. > +1 for fixing this. This is a limitation. > > So as a solution to that i thought of introducing flag support to the > Filter mediator with the regex matching. So users can optionally configure > flags like > MULTILINE , DOTALL , CASE_INSENSITIVE with the filter mediator. > > And also they will be able to use the combination of flags > > ex : > DOTALL | CASE_INSENSITIVE > > after introducing this example filter mediator will look like this > > <filter source="." regex=".*connection.*" flag="DOTALL | CASE_INSENSITIVE" > xmlns:m="http://www.webserviceX.NET/"> > > you can find more information in [1] > > I'm going of introduce following flags which i think is useful. > > - MULTILINE > - DOTALL > - UNIX_LINES > - CASE_INSENSITIVE > > May I know how you came up with this list and what the rationale is? Thanks, Hiranya > If devs are ok i'll go head and add this feature to trunk. > > [1] http://www.javamex.com/tutorials/regular_expressions/multiline.shtml > > thanks, > Charith > > > > -- > Charith Dhanushka Wickramarachchi > http://charithwiki.blogspot.com/ > > -- Hiranya Jayathilaka Senior Software Engineer; WSO2 Inc.; http://wso2.org E-mail: hira...@wso2.com; Mobile: +94 77 633 3491 Blog: http://techfeast-hiranya.blogspot.com