find the pattern in java
<p>I need to find the method to find the following pattern is in the given string or what. <code>#8226:</code>. Here numbers can be anything, that should be start with #, end with : and should contains 4 numbers(4 digits).</p>
