Possible Duplicates:
Splitting in string in JavaScript
javascript startswith
Hello I have a string in javascript and I need to manipulate it. The string format is as follow
xxx_yyy
I need to:
- reproduce the behaviour of the
string.StartsWith("xxx_")
in c# - split the string in two strings as I would do with
string.Split("_")
in c#
any help ?