I need to find a pattern in a string.
The pattern is multi line, and contain only ASCII chars:
p = """
_o_
|
/ \
"""
And in this string I have to count the pattern(also can contain all ASCII char):
search_text = """
_o_
|
/ \ _o_
_o_ | _o_
| / \ |
/ \ \ <= this guy is not valid
"""
Question: Should I use regex, or some other algorithm?