I am trying to find a regex for the following:
All worlds matching @WORD@
exactly where WORD
could be any word at all but are only after an =
.
I made the following:
(?<==)#.*?#)
which works but only for patterns like =@SOMEWORD@
or @ANOTHERWORD@
but not for = @WORD@
.
I am also interested in not being followed by =
but could not figure out that.
Anyway using something like: (?<=\\s*=\\s*)#.*?#)
but it does not work.
Any ideas?
Note: Strange but from here it says that variable length lookbehind is not supported in Java but this does not give me an exception