if ( <stringa>.match( <espressione_regolare> )


oppure



if ( <regExp>.test( <stringa> )



regexp DELIMITATI con / e /