Same pattern, but it only matches if re.match(regex, flags) produces a match that corresponds to the entire string.
(self, regex, flags=0)
| 60 | return SameAs(self, obj) |
| 61 | |
| 62 | def matching(self, regex, flags=0): |
| 63 | """Same pattern, but it only matches if re.match(regex, flags) produces |
| 64 | a match that corresponds to the entire string. |
| 65 | """ |
| 66 | return Matching(self, regex, flags) |
| 67 | |
| 68 | # Used to obtain the JSON representation for logging. This is a hack, because |
| 69 | # JSON serialization doesn't allow to customize raw output - this function can |