Jump to content
Sign in to follow this  
Vladi243

Separate between capital and small letter

Recommended Posts

Vladi243

Why AU3 can't separate between capital letter and small letter?

Share this post


Link to post
Share on other sites
SmOke_N

Why AU3 can't separate between capital letter and small letter?

Can you be alot more specific?

Edit:

Something wrong with:

StringIsLower

StringIsUpper

?

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
SmOke_N

Or are you looking for something like:

#include <array.au3>
$s_string = "IAmAString"
$a_sre = StringRegExp($s_string, "([A-Z][a-z]*)", 3)
_ArrayDisplay($a_sre)


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
Vladi243

I created a simple example to show you the problem.

$i="a"

If $i="A" Then MsgBox (4096, "Test", "A")
If $i="a" Then MsgBox (4096, "Test", "A")

The script can't separate between the "a" and "A".

Do you understand what's I mean? I speak English bad, that's why I can't explain my self well.

Share this post


Link to post
Share on other sites
SmOke_N

I created a simple example to show you the problem.

$i="a"

If $i="A" Then MsgBox (4096, "Test", "A")
If $i="a" Then MsgBox (4096, "Test", "A")
Edited by SmOke_N
Fixed OP lower upper case "a" in second example.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
Vladi243

$i="a"

If $i=="A" Then MsgBox (4096, "Test", "A")
If $i=="a" Then MsgBox (4096, "Test", "A")
Ohh... Great!

You are the best.

Thanks.

Edited by Vladi243

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.