The Altair Community and the RapidMiner community is on read-only mode until further notice. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here.
Options
[Solved]Removing a truncated URL from a full URL
![Kate_Strydom](https://us.v-cdn.net/6030995/uploads/defaultavatar/nCCNNSPK1YM69.jpg)
![](https://s3.amazonaws.com/rapidminer.community/vanilla-rank-images/contributor-16x16.png )
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