Actually such an expression:
preg_match("/$a(.*?)/i",$text,$matches); I cannot put text into single quotes, since the $a variable will not be processed, and it produces an error with double quotes. How to use the variable in the source text of the regular?
preg_quote()function. Questions on enSO: stackoverflow.com/questions/4936342/… ... stackoverflow.com/questions/1531456/… - user239133