-->
Luca's pills for computer vision and machine learning experiments on linux
Fixes and hacks for bash, sed, awk, python, perl, makefile, ...
Saturday, March 9, 2013
regular expression insensitive to newlines
when you are reading the file, just get rid of all the newlines
open('myfilename.txt').read()
.replace('\n', '')
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment