 |
Sarkhee Newbie
Joined: 17 Dec 2009 Posts: 1
|
Posted: Thu Dec 17, 2009 10:00 pm
%match, case-sensitive match? |
I'm using %match to capture information from my prompt using the following code:
Code: |
#IF (%match(@prompt, "cw") <> 0) {...} |
This works ok but the problem is that it also matches "CW" with uppercase. How can I make sure to only match specific combinations like "cW" or "Cw" (case-sensitive). |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Thu Dec 17, 2009 11:23 pm |
%pos("CW",@prompt) or %pos("cW",@prompt) or ...
Without knowing the format of the string involved there's not a whole lot more to suggest. |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
 |
|
|