%%
%standalone
%class Example
nl = \n|\r|\r\n
hexadecimal= [0-9,A-F][0-9,A-F]+
{hexadecimal} {System.out.println("hexadecimal: " + yytext());}
{nl}|" "|\t {;}
. {System.out.println("Error has occured: " + yytext());}