Aug-08-2017, 02:09 PM
(This post was last modified: Aug-08-2017, 02:09 PM by baronmontesqieu.)
ok so now I have the following code, but the output is a set of brackets.
import re str = open('directory', 'r').read() pattern = re.findall('\d+(M)\d+(N)\d+(M)', 'filename') print patternoutput
[]