You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by "Shishir K. Singh" <sk...@synapsistech.com> on 2003/06/23 16:40:33 UTC

org.apache.xerces.utils.regex help

	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: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org