<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def subn_filter(s, find, replace, count=0):
 """A non-optimal implementation of a regex filter"""

    return re.gsub(find, replace, count, s)