I'm trying to use Linkify
but can't seem to get the Pattern.compile()
part down.
Let's say i have a string like blah blah hi Hello world! can you match me?
i want to match and linkify ONLY Hello world!
and nothing else. i was trying to play around with this regex: Pattern pattern = Pattern.compile("\\bHello world!\\b");
but it doesn't seem to be matching at the exclamation mark.
what's the best way to match for an EXACT sequence of characters?