So habe ich diesen einfachen Text:Get Link von Text
To activate your account click the link below:
https://tbeyfee-gkg9834636j-gergity3yu3hgge-drgengo9476y3ltjne
If the above URL does not work try copying and pasting it into your browser. If you continue to have problem please feel free to contact us.
If you have any questions, please do not hesitate to contact your account manager directly or email us at [email protected] and we'll get right back to you.
Thanks again for choosing logger.
Kind regards,
The Logger Team
Was die einfache Möglichkeit wäre, diesen https
Link zu fangen?
Dies ist, was ich versuche haben:
val str = "" // This is my string.
val pattern = new Regex("^https.*$")
println(pattern.findAllIn(str))
hier ist 1: '^ https. * $' – ritesht93
Sind Sie mit dem Scala-Code oder mit der Regex fest? Siehe http://stackoverflow.com/questions/3809401/what-isa-a-good-regular-expression-to-match-a-url für eine Regex. –
Bitte beachten Sie mein Update. –