lets say I have
String str = "sdahasdahellodsadsahdashellodsadsadsahehllo";
and I want to replace every letter that isn't part of hello with the character '_', how would I do it? the output would be something like:
_______hello_________hello_____________
What regex would I have to use? I've used [^hello] but it matches each individual character, not the word itself, so I have a bunch of random letters floating about.