Report question

Question: Shell equivalent to PHP's preg_replace()