Is there an equivalent of the PHP function preg_split for JavaScript?

Edit
Report