Code: Select all
RegExReplace(str0, ",(?=([^{]*}))", "!")
Code: Select all
RegExReplace(str0, ",(?=([^{]*}))", "!")
Code: Select all
var =
(
anylength = 262.11
anylengthXXXX = 11211.3
anylengthXX = 262.23
)
Sort, Var, F MySort
MsgBox % var
return
MySort(a1, a2){
a1 := StrSplit(a1, "=").2
a2 := StrSplit(a2, "=").2
return a1 > a2 ? 1 : a1 < a2 ? -1 : 0
}
Code: Select all
str := "Peter: This one. Michael: nothing. Rita: Over there. Paul: nothing."
while pos := RegExMatch(str, "([A-Z][a-z]+)\K[\:]\s+[A-Z]", m, A_Index=1?1:pos+StrLen(m))
result .= "match # " A_Index " at pos " pos " after " m1 "`n"
MsgBox % result
Code: Select all
result := ["1`t2`t3", "4`t5", "6`t7"]
for r, line in result
for c, v in StrSplit(line, "`t")
xl.cells(r, c).value := v
Code: Select all
#if blockPosA123_TIMER([200,200], [500,500]) and WinActive("ahk_class CabinetWClass") and !WinExist("D:\2.ahk")
Code: Select all
LShift::return
#if GetKeyState("LShift", "P")
z::
Send ^c
Send ^v
return
x::
Send ^c
Send ^x
return
#If
Code: Select all
#if GetKeyState("CapsLock", "P")
!C::
MsgBox
return
#if
you're right, I just did a copy and paste from OP