Hello, I have a string which is my Url, the string is:
125-1jump-test-for12-test
now I want to remove 125- from the string by this regex
def get_number_of_url(url_string) do
Regex.match?(~r/^(\d+)/, "#{url_string}")
end
I need it to be without number before - DASH, how can I edit this, I want to remove the string which the regex finds and first DASH after that ?
for example:
1jump-test-for12-test
if there are 2
125-, how will I do ? like this:
125-1jump-test-for12-test-125-























