You want #(.*?)\? (the '?' makes the .* non-greedy).
#([^?]*) also works, of course. But it also matches "TTT" in "aaaaaaaa#TTT" (note that there is no question mark).
In reply to Re: Regexp Confuzzelemt
by akho
in thread Regexp Confuzzelemt
by AntsPants
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |