I want to find the words that start with a "#" sign in a string in java. There can be spaces between the sign and the word as well.

The string "hi #how are # you" shall give the output as :

how
you

I have tried this with regex, but still could not find a suitable pattern. Please help me on this.

Thanks.

Edit
Report