I have two regex in my javascript code
const regex = /[0-9a-zA-Z_ ]{3,}/gm;
const htmlRegex = /\r\n|\n|\r| |<[^>]*>/gm;
first regex is for check string exist or not by 3 digit and second regex is for check at string include html code or not. But this regex is to slow takes 1-2 second.
How to fix this ? thanks before.