equal
deleted
inserted
replaced
2661 becomes a non-match, or "+" for a non-match that becomes a match), |
2661 becomes a non-match, or "+" for a non-match that becomes a match), |
2662 use the --all flag. |
2662 use the --all flag. |
2663 |
2663 |
2664 Returns 0 if a match is found, 1 otherwise. |
2664 Returns 0 if a match is found, 1 otherwise. |
2665 """ |
2665 """ |
2666 reflags = 0 |
2666 reflags = re.M |
2667 if opts.get('ignore_case'): |
2667 if opts.get('ignore_case'): |
2668 reflags |= re.I |
2668 reflags |= re.I |
2669 try: |
2669 try: |
2670 regexp = re.compile(pattern, reflags) |
2670 regexp = re.compile(pattern, reflags) |
2671 except re.error, inst: |
2671 except re.error, inst: |