Regular expression to compare numbers
I have a method
compare(Object value, String searchTxt);
The value can either be a Number, Date, String.
The searchTxt can have values to compare Strings, Dates, Numbers. It also can have logical comparison operators like =, !=, >, <, >=, <= eg.
compare(numValue, "> 1000 <= 2000)
compare(dateValue, "> 2006/12/12 <= 2007/01/25)
compare(stringValue, "> abc <= xyz )
Can I have some regular expression to control this comparision and make my life little easier. Because spliting the string and checking for all possible options can be a tedious job.
Peace n Regards

