calebo calebo - 10 months ago 79
Javascript Question

Get end of string that matches pattern with lodash

How can I get the last integer(s) at the end of the string including the dash before it using lodash?


So the end result is just

Answer Source

Use JavaScript String#match method