Here's a regular expression pattern to match all URLs:

`^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/([^\s]*[^.,;:\s])?)?$`

This pattern matches URLs with `http` or `https` protocol, domain names with or without subdomains, optional port numbers, and optional file paths.
Costruisci un pattern di espressione regolare in modo che corrisponda a tutti gli URL.