Python正则表达式问题

use*_*144 1 python regex

我需要在正则表达式中做一些事情,但我真的不擅长它,很久没有那样做了.

/a/c/a.doc
Run Code Online (Sandbox Code Playgroud)

我需要改成它

\\a\\c\\a.doc
Run Code Online (Sandbox Code Playgroud)

请尝试在Python中使用正则表达式.

Cam*_*ird 5

我完全赞成帮助user483144将"解决方案"与"正则表达"区分开来,正如之前的两位回答者已经做过的那样.此外,我发现os.path.normpath() http://docs.python.org/library/os.path.html可能是他真正追求的.