Bug 212094 BirtComp.match doesn't work
The BirtComp.match() function is supposed to test if a value matches a JavaScript regular expression. However, the following expression always returns false when there are product codes that contain the string S24. BirtComp.match(dataSetRow["PRODUCTCODE"], /S24/)
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/script/ScriptEvalUtil.java
/**
		 * 
		 * @param obj
		 * @param operator
		 * @param operands
		 * @return
		 */
		private static Object[] isComparable( Object obj, int operator,
				ExprTextAndValue[] operands )
		{
			if ( needFormat( obj, operator, operands ) )
				return formatToComparable( obj, operands );
			return null;
		}
		/**
		 * 
		 * @param obj
		 * @param operator
		 * @param ops
		 * @return
		 */
		private static boolean needFormat( Object obj, int operator,
				ExprTextAndValue[] ops )
		{
			if ( operator < IConditionalExpression.OP_EQ
					|| ( operator > IConditionalExpression.OP_NOT_BETWEEN && operator < IConditionalExpression.OP_IN )
					|| obj == null || ops.length == 0 || ops[0].value == null )
				return false;