Is there a way to combine two different Regex?

  javascript, regex

I have two different Regex formuals, one for replacing spaces, commas, and periods with an underscore: /[ ,.]/g,"_" and another one removing symbols /[[email protected]#$%^&*]/g,"".
Is there a way to combined these two together into one expression?

Source: Ask Javascript Questions

LEAVE A COMMENT