<script type="text/javascript"> var str="<is this all there ^is"; var patt1=/<is/g; document.write(str.match(patt1)); </script>