Regular Expression relace Myname _Mysurname with "" in PHP
Posted
by streetparade
on Stack Overflow
See other posts from Stack Overflow
or by streetparade
Published on 2010-04-22T07:33:21Z
Indexed on
2010/04/22
8:33 UTC
Read the original article
Hit count: 286
I need a regular expression which replaces a string like this
"Myname _MySurename" with "Myname"
that means i just need Myname, so _MySurename should be cut.
i tryed something like "/_*/" but that replaces just the _ (underscore) how can i do that in PHP ?
© Stack Overflow or respective owner