in reply to Using a DBI placeholder

I assume it is because it is in a String, you should try:
...REGEXP ?
and then set the value with a ? prepended, e.g.

... $sth->bind_param($x, $value); ... $sth->execute();

regards,
tomte


edit:striked out my foolishness