Regular expression to match a line that doesn’t contain a word ^the beginning of the string, ( group and capture to \1 (0 or more times (matching the most amount possible)),(?! look ahead to see if there is not, your string,) end of look-ahead, . any character […] Curly hair, very fair, please share :)Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Reddit (Opens in new window)Click to share on Telegram (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to email a link to a friend (Opens in new window) Subash Chandran 12th September 2020 Leave a Comment