eg:

    1. <script>
    2. var str ="hello";
    3. var arr =str.match("l");
    4. console.log(arr) //[l]
    5. </script>