B
B
Barrakuda742018-03-04 16:44:50
.NET
Barrakuda74, 2018-03-04 16:44:50

How to select by regular expression '12' from the text "50-30-12"?

the regular expression / (?<=-).*$ / takes everything from the first dash (i.e. we get '30-12'), and I need from the second one, is there any way to do this with a regular expression?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick Sdk, 2018-03-04
@Barrakuda74

would this option work?
/(?:\d+-){2}(\d+)/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question