Moved the emphasis regexes to a constants class

This commit is contained in:
Veronica K. B. Olsen
2020-06-13 10:08:00 +02:00
parent 6951b3d2fa
commit 49049e19d8
3 changed files with 14 additions and 5 deletions
+8
View File
@@ -34,6 +34,14 @@ class nwConst():
# END Class nwConst
class nwRegEx():
FMT_B = r"(?<![\w|\*|_|\\])([\*|_]{2})(?!\s|\*|_)(.+?)(?<![\s|\\])(\1)(?!\w)"
FMT_I = r"(?<![\w|\*|_|\\])([\*|_])(?!\s|\*|_)(.+?)(?<![\s|\\])(\1)(?!\w)"
FMT_BI = r"(?<![\w|\*|\\])([\*]{3})(?!\s|\*)(.+?)(?<![\s|\\])(\1)(?!\w)"
# END Class nwRegEx
class nwFiles():
PROJ_FILE = "nwProject.nwx"