I have this regular expression which matches all http://
links
(http:\/\/[a-z0-9\.\/]+)/i
How do i modify it to include https://
links?
I have this regular expression which matches all http://
links
(http:\/\/[a-z0-9\.\/]+)/i
How do i modify it to include https://
links?
You need to add s
after the string http
and also add ?
after s
to make it optional
/(https?:\/\/[a-z0-9\.\/]+)/i