[Solved]Removing a truncated URL from a full URL


Good Morning,
Does anyone know how to remove a truncated URL from a full URL in RapidMiner?
I have two attributes:
truncated URL full URL
http://www.unisa.ac.za www.unisa.ac.za/news/index.php/2014/03/changes-to-mayjune-2014-examination-period/
I would like the new attribute to have
/news/index.php/2014/03/changes-to-mayjune-2014-examination-period
I have converted the attributes from nominal to text attributes.
Thanks for the help.
Regards
Kate
Does anyone know how to remove a truncated URL from a full URL in RapidMiner?
I have two attributes:
truncated URL full URL
http://www.unisa.ac.za www.unisa.ac.za/news/index.php/2014/03/changes-to-mayjune-2014-examination-period/
I would like the new attribute to have
/news/index.php/2014/03/changes-to-mayjune-2014-examination-period
I have converted the attributes from nominal to text attributes.
Thanks for the help.
Regards
Kate
0
Answers
I have created a small process which can do that. Note that in your example your truncated url starts with a http:// while your full url does not. I have assumed your actual data does not contain different prefixes. If you need to remove the http:// first, just add another "Replace" operator after retrieving your data and replace 'http://' with an empty string. Regards,
Marco
Thanks so much. The code works well.
Regards
Kate