Hi,
I have a var-sized URL passed into my method. I need to trim it, so instead
of :
"123abc.MyDomai n.com", I ended up with "MyDomain". The size of the initial
string is not fixed. IndexOf wouldn't work, because different domain names
are passed every time. I think, I need to use RegEx, but maybe there is some
trick that I just didn't think of. Please, advise.
Thanks in advance,
--Alex Ayzin
I have a var-sized URL passed into my method. I need to trim it, so instead
of :
"123abc.MyDomai n.com", I ended up with "MyDomain". The size of the initial
string is not fixed. IndexOf wouldn't work, because different domain names
are passed every time. I think, I need to use RegEx, but maybe there is some
trick that I just didn't think of. Please, advise.
Thanks in advance,
--Alex Ayzin
Comment