here you go
$string = "this \"and\" that 'and' them \" and \" those ' and ' there";
// this one will get rid of the far quoted
$newstring = ereg_replace("[\"']+ and +[\"']", "", $string);
//try this one on for size, it will get rid of far and near quoted
$newstring = ereg_replace("[\"']+ ?and ?+[\"']", "", $string);
sarah wrote:
I need some regular expression that will replace everything between " and " or ' and '. I am stuck, any help appreciated.