Я хочу извлечь определенную часть из строки в Spark
, например, например, моя строка
val b= "URL ftp://216.24.126.75/serversoftware/ocs/OCS_Inventory_NGInstallation_and_Administration_Guide_1.7_EN.odt MENTION cryptography 201564 http://en.wikipedia.org/wiki/Cryptography MENTION digital signature 201870 http://en.wikipedia.org/wiki/Digital_signature TOKEN decide 153579 TOKEN Analyze 160938 TOKEN properly 140437 TOKEN reselect 78017 TOKEN writing 60758 "
, и я хочу выводить так:
(ftp://216.24.126.75/serversoftware/ocs/OCS_Inventory_NGInstallation_and_Administration_Guide_1.7_EN.odt,http://en.wikipedia.org/wiki/Cryptography) (ftp://216.24.126.75/serversoftware/ocs/OCS_Inventory_NGInstallation_and_Administration_Guide_1.7_EN.odt,http://en.wikipedia.org/wiki/Digital_signature)