regular expression 4 assertions
<JavaScript> ^ Matches beginning of input. If the multiline flag is set to true, also matches immediately after a line break character. $ Matches end of input. If the multiline flag is set to true, also matches immediately before a line break char ...
http://qindex.info/i.php?x=4873

-