<div dir="ltr">Hello folks ,<br><br>I trying to match a pattern in a string , i am new in using re .This is what is happening<br><br>When i do this<br><br>p = re.compile('(\[&&NHX:)')<br>>>> m = p.match("[&&NHX:C=0.195.0]")<br>
>>> print m<br><_sre.SRE_Match object at 0x013FE1E0><br> --- thus i am able to find the match<br>but when i use the string <br><br>m = p.match("-bin-ulockmgr_server:0.99[&&NHX:")<br>>>> print m<br>
None<br>-i am not able to find the match .<br><br>Can someone help me here.<br><br>Thanks<br><br>Aditya<br></div>