Hi,
Seems like a simple question but I wasn't able to come with the right syntax.
I would like something like
while the regexmatch is not null and <= LengthLim, store it in TempFoundDelimPos and do ...
Code: Select all
while (TempFoundDelimPos:=regexmatch(TextToWrapNew,P_RegexDelim,,CurrPos)<=LengthLim) {
...
}
Instead of writing
Code: Select all
while (regexmatch(TextToWrapNew,P_RegexDelim,,CurrPos) and regexmatch(TextToWrapNew,P_RegexDelim,,CurrPos)<=LengthLim) {
TempFoundDelimPos:=regexmatch(TextToWrapNew,P_RegexDelim,,CurrPos)
...
}
Which is long, redundant and performs 3 same regexmatch
Thanks !
EverFastAccess : Take Notes on anything the Fast way: Attach notes, Set reminders & Speed up research in 1 gesture -
AHK topic
AHK Dynamic Obfuscator L - Protect your AHK code by Obfuscation -
AHK topic
QuickModules for Outlook : Sort Outlook emails very quickly to multiple folders - AHK topic
Coding takes lots of time and efforts. If I have helped you or if you enjoy one of my free projects, please consider
a small donation
Sorry I am working hard at the moment at a new job and can't commit on delays of answers & updates