Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Regex IGNORECASE

  • IGNORECASE
  • I
import re

s = 'Python'

if (re.search('python', s)):
    print('python matched')

if (re.search('python', s, re.IGNORECASE)):
    print('python matched with IGNORECASE')