Browse Source

Add own simple salt module.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm 8 years ago
parent
commit
300eecf8d4
1 changed files with 7 additions and 0 deletions
  1. 7 0
      _modules/ffho.py

+ 7 - 0
_modules/ffho.py

@@ -0,0 +1,7 @@
+import re
+
+def re_replace (pattern, replacement, string):
+	return re.sub (pattern, replacement, string)
+
+def re_search (pattern, string, flags = 0):
+	return re.search (pattern, string, flags)