<?php $str = "SELECT * FROM foo WHERE a = :foo"; preg_match_all('/\b:([a-z0-9_])\b.*+\b:\1\b/i', $str, $matches); var_dump($matches);
You have javascript disabled. You will not be able to edit any code.