Dear forum readers,
This is my third question in short time. Please believe me when I say I am making an effort to RTFM ! I am just not able to find the answers.
I would like to use a Regular Expression to test a string in an if statement :
where I use the ? as a replacement char for any character. But I cannot make the test work.
Am I totally out on the wrong playground when I imagine that this is possible with regular expression ?
Edited: OK. I worked around it by using
... to increase the selection by one. In this way I also ignore the last character in my original selection of three characters.
I would still like to know how to test a string ( true or false output ) using a regular expression.
Kind regards
Jørn
Using UltraEdit 15.00.0.1043 on XP SP3.
This is my third question in short time. Please believe me when I say I am making an effort to RTFM ! I am just not able to find the answers.
I would like to use a Regular Expression to test a string in an if statement :
Code: Select all
if (UltraEdit.activeDocument.selection == RegExp(<mystring>+OneRandomCharacter) { ...
// So something like this :
if (UltraEdit.activeDocument.selection == RegExp("12?") { ...
Am I totally out on the wrong playground when I imagine that this is possible with regular expression ?
Edited: OK. I worked around it by using
Code: Select all
UltraEdit.activeDocument.startSelect();
UltraEdit.activeDocument.key("LEFT ARROW");
I would still like to know how to test a string ( true or false output ) using a regular expression.
Kind regards
Jørn
Using UltraEdit 15.00.0.1043 on XP SP3.