Created
September 25, 2010 15:51
-
-
Save Arthraim/596977 to your computer and use it in GitHub Desktop.
transfer TianYu csv file to a nokia csv file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 天宇csv -> nokia csv | |
# Arthur Wang | |
# REGEX: "(\w+|[^@#:\s,,,.。;;:;]+)" * | |
import re | |
p = re.compile('"(\\w+|[^@#:\\s,,,.。;;:;]+)" *') | |
p.sub(r"\1,", '"abc" "12312312"', 0); | |
# OUTPUT: 'abc,12312312,' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment