Answer the question
In order to leave comments, you need to log in
Why is the selected pattern not being searched?
String "hello world 2000 00:00:00 50 users"
RegExp replace(/^(\d\d:\d\d:\d\d)/g, "")
Why doesn't it delete all elements in the string except 00:00:00?
As far as I understood, what we wrote in () is a single whole, and ^
in front of it means, except, i.e. replace everything except
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question