I am new to Python and would like to know how to have build a regex pattern to match a URL
I have the following code in Java and it works. I need to have a similar one in python
Java:
URI uri = new URI("http://localhost:8080")
Matcher m = Pattern.compile("(.*)" + "/client" + "/([0-9]+)")
.matcher(uri.getPath());
Could someone guide me with having an equivalent regex in Python