1 # Author: Martin Matusiak <numerodix@gmail.com>
2 # Licensed under the GNU Public License, version 3.
10 m
= re
.compile(r
).search(s
)
15 m
= re
.compile(r
).search(s
)
16 if m
and m
.groups() and m
.groups()[0]:
20 m
= re
.compile(r
).search(s
)
25 m
= re
.compile(r
).findall(s
)
28 def replaceall(old
, new
, s
):
29 return re
.sub(old
, new
, s
)