Saturday 22 July 2023

Regular Expression - How To Create Regular Expression For Case Insensitive

 How To Create Regular Expression For Case Insensitive


  1. Use Simple Regular Expression Syntax - (?i)<Normal Regular Expression>
    • (?i) -> Indicates Case Insensitive Regular Expression
  2. Use Language And Technology To Use Library/Methods/Interface To Pass Additional Parameter As             Flag To Determine If Case Sensitive Or Case InSensitive Comparison Is Required. 
  • FindPattern(<regular expression>, caseSensitiveFlag(True/False))

No comments:

Post a Comment