我试图获得一个特定的价值TextView,即Youtube链接.
我想只提取例如TextView包含"Check this out!(Youtube link here)"的链接."检查出来!"需要省略,只获取Youtube链接.该TextView是用户输入的,所以变化.
有什么建议吗?
小智 5
你可以试试这个
You can use regular expression with Patterns.WEB_URL regular expression to find all urls in your text.
Run Code Online (Sandbox Code Playgroud)