Modify

#2090 closed Bug (No Bug)

[:upper:] is not working

Reported by: Leagnus Owned by:
Milestone: Component: AutoIt
Version: 3.3.8.0 Severity: None
Keywords: regular expressions Cc:

Description

versions 3.3.6.1 till 3.3.8.0

not working:

#include <Array.au3>
Local $a_a
Local $avArray[5] = [ _
	  "LED", _
	  "IdeaPad", _
	  "ProBook", _
	  "PSII", _
	  "HDD"]
	  
for $i_counter = 1 to ubound($avArray)-1
   $a_a = StringRegExp($avArray[$i_counter], "[:upper:]+", 1)	
   if not @error then
	  MsgBox(0, "", $a_a[0])
   Endif
next

Working:

#include <Array.au3>
Local $a_a
Local $avArray[5] = [ _
	  "LED", _
	  "IdeaPad", _
	  "ProBook", _
	  "PSII", _
	  "HDD"]
	  
for $i_counter = 1 to ubound($avArray)-1
   $a_a = StringRegExp($avArray[$i_counter], "[А-ЯA-Z]+", 1)
   if not @error then
	  MsgBox(0, "", $a_a[0])
   Endif
next

Attachments (0)

Change History (1)

comment:1 by Jos, on Jan 2, 2012 at 10:06:06 PM

Resolution: No Bug
Status: newclosed

Your regex is wrong and should be:

$a_a = StringRegExp($avArray[$i_counter], ":upper:+", 1)

Jos

Version 0, edited on Jan 2, 2012 at 10:06:06 PM by Jos (next)

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.