I have a set of starting 2 alphabets as:
$arr = ['AB', 'DC', 'LF']
Problem: I need to make a regex (in PHP and TypeSript) that passes only those strings which starts with above values.
Example:
Valid:
ABwerty45^&*jk
ABwerrtty
LF%$^erftgt5234
Invalid:
TABYR56H
ab7877
Abtyu7
Any help is appreciated.