equal
deleted
inserted
replaced
2692 becomes a non-match, or "+" for a non-match that becomes a match), |
2692 becomes a non-match, or "+" for a non-match that becomes a match), |
2693 use the --all flag. |
2693 use the --all flag. |
2694 |
2694 |
2695 Returns 0 if a match is found, 1 otherwise. |
2695 Returns 0 if a match is found, 1 otherwise. |
2696 """ |
2696 """ |
2697 reflags = 0 |
2697 reflags = re.M |
2698 if opts.get('ignore_case'): |
2698 if opts.get('ignore_case'): |
2699 reflags |= re.I |
2699 reflags |= re.I |
2700 try: |
2700 try: |
2701 regexp = re.compile(pattern, reflags) |
2701 regexp = re.compile(pattern, reflags) |
2702 except re.error, inst: |
2702 except re.error, inst: |