Sublime Forum

Regular Expression Not Working Properly

#1

There seems to be a problem with turning case sensitivity in the regex using (?i) (?-i) and the tool bar. The regex (?i) and (?-i) should take precedence.

[size=150]Example 1 - Good[/size]
Case Sensitive Off (toolbar)

Regex: [A-Z]
Sample text (all matches in blue):
aBc

[size=150]Example 2 - Good[/size]
Case Sensitive On (toolbar)

Regex: [A-Z]
Sample text (all matches in blue):
aBc

[size=150]Example 3 - Bad[/size]
Case Sensitive Off(toolbar)

Regex: code[A-Z][/code]
Sample text (all matches in blue): (doesn’t match anything)
aBc

[size=150]Example 4 - Bad[/size]
Case Sensitive On (toolbar)

Regex: code[A-Z][/code]
Sample text (all matches in blue):
aBc

Spitfire

0 Likes