Hi, I'm trying to display a value after evaluating it with a regular expression. However I'm not sure what is the right way to do that, and hence not getting results. Following is the code I'm using in XML part of the jrxml. <textFieldExpression><![CDATA[( ($F{name}.matches(^.*s-)) ? ( $F{name}.substring(0,12) + "..." ) : ($F{name}) )]]></textFieldExpression> Any help would be much appreciated! Thanks