Hi, 

        My intent is to parse the  property file like 

        AAAAAA =   BBBBBBB;
        XXXXXX =   "YYYYYY";

        I am using the following expression which works fine with the 
java.util.regex package Java 1.4 (I have to do the same on Java 1.3). 

        RegularExpression re = new 
RegularExpression("^(.*?)\\s*?=\\s*?(.*?)\\;$");
        Match mat  = new Match();
        boolean m = re.matches(line,md);

        I want to get to the two group to get the key/value pair. 

        The return value of m is false. 

        Is there something wrong with the expression ?



        TIA
        Shishir
         

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

Reply via email to