Home Download Buy Blog Forum Support

Regular Expression Not Working Properly

Regular Expression Not Working Properly

Postby Spitfire on Fri Nov 18, 2011 8:12 pm

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.

Example 1 - Good
Case Sensitive Off (toolbar)

Regex:
Code: Select all
[A-Z]

Sample text (all matches in blue):
aBc

Example 2 - Good
Case Sensitive On (toolbar)

Regex:
Code: Select all
[A-Z]

Sample text (all matches in blue):
aBc

Example 3 - Bad
Case Sensitive Off(toolbar)

Regex:
Code: Select all
(?-i)[A-Z]

Sample text (all matches in blue): (doesn't match anything)
aBc

Example 4 - Bad
Case Sensitive On (toolbar)

Regex:
Code: Select all
(?i)[A-Z]

Sample text (all matches in blue):
aBc


Spitfire
Spitfire
 
Posts: 1
Joined: Fri Nov 18, 2011 7:21 pm

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 10 guests