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.
1 2 3 4 |
import re str = open ( 'directory' , 'r' ).read() pattern = re.findall( '\d+(M)\d+(N)\d+(M)' , 'filename' ) print pattern |
1 |
|