Very Simple Regex Question
Posted
by Sunil
on Stack Overflow
See other posts from Stack Overflow
or by Sunil
Published on 2010-06-08T14:29:21Z
Indexed on
2010/06/08
14:32 UTC
Read the original article
Hit count: 519
Hello sir
I have a very simple regex question suppose I have 2 condition
1 url =http://www.abc.com/cde/def 2 url =https://www.abc.com/sadfl/dsaf
and how can I extract the baseUrl using regex.
sample output
1 http://www.abc.com 2 https://www.abc.com
Thanks
© Stack Overflow or respective owner