<?php $string = "This is a test id=abc> string";$replace = preg_replace('/=([\w]+)/i', '="$1"', $string ); echo $replace ;
Standard input is empty
This is a test id="abc"> string
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!