Jeorey
Member
Good day folks, I am trying to split the first slash, since third is not an option. What I really need is the second half of the split not the first half. Would anybody have any idea as to why I am receiving uniquely the left portion of the split and not both, the left and right portion of the split in my inputs? Ie:
What I envision the split on the first / occurrence to be is something like this:
So this input
1) www.journaldemontreal.com/2021/11/01/questions-autour-de-lhypotheque-fixe-5-ans
Becoming:
1) www.journaldemontreal.com
2) /2021/11/01/questions-autour-de-lhypotheque-fixe-5-ans
(as the second half is of importance to me)
I would greatly appreciate any help. Sadly, I am not the best with regex so this is my only option, unless someone has a regex solution haha. I am trying to translate articles into English via google translate, so I am redesigning the link to be Google's link
What I envision the split on the first / occurrence to be is something like this:
So this input
1) www.journaldemontreal.com/2021/11/01/questions-autour-de-lhypotheque-fixe-5-ans
Becoming:
1) www.journaldemontreal.com
2) /2021/11/01/questions-autour-de-lhypotheque-fixe-5-ans
(as the second half is of importance to me)
I would greatly appreciate any help. Sadly, I am not the best with regex so this is my only option, unless someone has a regex solution haha. I am trying to translate articles into English via google translate, so I am redesigning the link to be Google's link