PHP preg_match to check if a character is contained while another not using lookahead
I need to check inside a given string, if a character is contained while another not e.g. It needs to contain ‘a’ but not ‘b’.
I need to check inside a given string, if a character is contained while another not e.g. It needs to contain ‘a’ but not ‘b’.