calebo calebo -4 years ago 194
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


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download