Modify

Opened 10 years ago

Closed 10 years ago

#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 Changed 10 years ago by Jos

  • Resolution set to No Bug
  • Status changed from new to closed

Your regex is wrong and should be:

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

Jos

Last edited 10 years ago by Jos (previous) (diff)

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.