Search found 3 matches

by zeus19
24 Feb 2017, 07:39
Forum: Ask for Help (v1)
Topic: RegExMatch help Topic is solved
Replies: 3
Views: 995

Re: RegExMatch help Topic is solved

HotKeyIt wrote:

Code: Select all

j:="
(
0.5x0.5p
x
xx
xd
)"
RegExReplace(j,"[a-zA-Z](?Cfound)")
found(Match){
	msgbox % Match
}
@HotKeyIt:
Can you explain the (?Cfound) part?
by zeus19
24 Feb 2017, 04:48
Forum: Ask for Help (v1)
Topic: RegExMatch help Topic is solved
Replies: 3
Views: 995

RegExMatch help Topic is solved

I have several string:
0.5x0.5p
x
xx
xd
And I just want one alpha at a time. How can I use RegExReplace and RegExMatch to get it.

Code: Select all

RegExMatch(j,".?.*([a-zA-Z]).?.*",match)
regexReplace(j,"[a-zA-Z]",,count)
Loop, % count
{
	strMatch := match%A_Index%
	msgbox % strMatch
}
by zeus19
09 Nov 2016, 08:16
Forum: Scripts and Functions (v1)
Topic: [Example] Encapsulating Gui Controls within a class
Replies: 12
Views: 7099

Re: [Example] Encapsulating Gui Controls within a class

I'm really new to coding, so can you explain why "CONTROL_PREFIX_LENGTH := StrLen(CONTROL_PREFIX) + 1", not +2,3, or just "StrLen(CONTROL_PREFIX)"

Go to advanced search