Replace short open tags PHP

Pattern Regex to replace short open tags using sublime:

Find: <\?( )*(?!php)(?!=)(?!xml)(?!mso)
Replace: <?php

It will find only ‘<?’ and they will be replaced by ‘<?php’

Anuncios