How to extract text after "-" in javascript. I have variable with value "15591 - dummy text" I want to get only dummy text after "-". I don want to replace numbers and "-" with space
Asked
Active
Viewed 256 times
-4
-
You may use split or match. I'm sure it's a multi-duplicate, can somebody find it ? – Denys Séguret Jun 10 '14 at 07:37
-
But *not* a duplicate of that :| – user2864740 Jun 10 '14 at 07:38
-
So many duplicates, but *I* would use `res = str.replace(/^\d+\s*-\s*/, "")` and be done with it. – user2864740 Jun 10 '14 at 07:39
-
The main issue - that you DID not show your effort. Just simple question without any effort. Welcome to SO anyway. – Serge P Jun 10 '14 at 07:40