Modify ↓
Opened on Jan 2, 2012 at 9:43:51 PM
#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 , on Jan 2, 2012 at 10:06:06 PM
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Your regex is wrong and should be:
Jos