I have got a regular expression of the form: "tcp:"+'[0-9]+'
It works fine when using the re.search( ) module. But if I want to grep for a line in a file that contains the pattern required, then the things wont work. Grep sees the regualr expression as tcp:+[0-9]. Hence grep will look for tcp:+[0-9]
How to make it ensured that grep will search for a pattern defined by the regular expression: "tcp:"+'[0-9]+'