Reputation: 51274
With JavaScript, how can I remove every thing after last coma character in a string using regular expressions?
For example if i input Vettucaud, Thiruvananthapuram, Kerala, India
,last word India
should be removed and the output need tro be like Vettucaud, Thiruvananthapuram, Kerala
Exactly the reverse thing in
Upvotes: 5
Views: 6138