I need to do some split, like this:
$(element).split(/*(.+)?/)[1]);
But those /*
characters, make my code be as a comment.
How can I use it & avoid from this to happen ?
Escape the *
character to match it literally. It means something within a regex. It means the previous token is matched 0 or more times.
/\*
The regex should be:
/\*(.+)?/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With