I'm attempting to do a match on the user agent in velocity templates.
$ua does print out but Matches! does not. What am I doing wrong?
#set( $ua = $request.getHeader('User-Agent'))
<p>$ua</p>
#if( $ua.matches('/Windows.(NT|XP|ME|9)/'))
<p>Matches!</p>
#end