F
F
FlatUser2020-04-26 18:16:00
Java
FlatUser, 2020-04-26 18:16:00

How to write regex for server address?

There is a line http://122.158.23.53:80
You need to write a regular expression that would find this kind of address, along with http:// and the server port

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timur Pokrovsky, 2020-04-26
@FlatUser

http://((?:\d{1,3}\.?){4}):(\d+) right?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question