nl_tokens: RegExp helpers
pl_tokens: function getRegExpFlags ( reg , add ) { var flags = reg . toString ( ) . match ( / [^/]*$ / ) [ 0 ] ; if ( <mask> ) { flags = ( flags + add ) . split ( '' ) . sort ( ) . join ( '' ) . replace ( / ([gimy])\1+ / g , '$1' ) ; } return flags ; }