<?php $input = 'แแแนแ'; echo preg_replace( ['/[\p{L}\p{N}@#".]+[\p{L}\p{N}._-]*/u', '/\p{M}/u'], ["foo[('$0')]bar", ' '], $input );
You have javascript disabled. You will not be able to edit any code.