below works for me.

import org.apache.oro.text.perl.Perl5Util;

public class Orotest {
    public Orotest () {
    }

    public static void main (String [] args) {
        Perl5Util perl5 = new Perl5Util();
        String regex = "m/ISIN\\s[A-Z]{12}/";
        if (perl5.match(regex, "ISIN BBBBBBBBBBBBDS")) {
            System.out.println("match1");
        }
        if (perl5.match(regex, "ISINBBBBBBBBBBBBBBBB")) {
            System.out.println("match2");
        }
    }
}

D:\temp>java -cp d:\projects\jakarta-oro-2.0.8\jakarta-oro-2.0.8.jar;.
Orotest
java -cp d:\projects\jakarta-oro-2.0.8\jakarta-oro-2.0.8.jar;. Orotest
match1

D:\temp>
>
> Hi.
> These do not work either.
> Am I using older version or something.
> Plese advise.
>
> thanks and regards,
> rajesh s.
>
> ************************************************************
> HSBC Software Development (India) Pvt Ltd
> HSBC Center, Riverside, West Avenue,
> 25-B Raheja Woods, Kalyani Nagar, Pune 411006.
>
> Telephone: +91 20 26683000
> Fax: +91 20 26681030
> ************************************************************
>
>
>
>
>
> **********************************************************************
> This E-mail is confidential. It may also be legally privileged.
> If you are not the addressee you may not copy, forward, disclose
> or use any part of it. If you have received this message in error,
> please delete it and all copies from your system and notify the
> sender immediately by return E-mail.
>
> Internet communications cannot be guaranteed to be timely,
> secure, error or virus-free. The sender does not accept liability
> for any errors or omissions.
> **********************************************************************
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to