I have a string that will have pipes | in it. for example:
$string = hello hello, hello <htmltags>> 任何特性;
NO what i want to do is remove last pipe followed by ANy character. so that my result would be following after preg_replace.
$replaced_string = hello | hello <htmltags> etc ;
你们可以帮助我,什么经常表达模式应该使用。