has the following string: ab Ac126 Hello 123-sharp 121a No bc13ab Hello a1b35-sharp a791 Ah 326bop Hello cagf1-sharp 38a good 1
needs to match so that does not contain the string "Hello. *?-sharp" (the character between "Hello" and "- sharp" is a variable). The matching result is as follows:
ab A c126121a does not bc13aba791, 326bop38a good 1
could you tell me how to write the corresponding rules?
I use [^ Hello. *?-sharp]
to match, and the intermediate variables also match