Considering a string like:
"@foo #foo@foo@foo #foo\n
foofoofoo\n
foo @bar"
I try for 2 days to extract the last #/@
occurrence so here, the @
before 'bar'. For now, i have something like this [@#](?!.*[@#])
which seems to work except when user insert new lines in there.
Can someone give me some tips please?