@HotKeyIt:HotKeyIt wrote:Code: Select all
j:=" ( 0.5x0.5p x xx xd )" RegExReplace(j,"[a-zA-Z](?Cfound)") found(Match){ msgbox % Match }
Can you explain the (?Cfound) part?
@HotKeyIt:HotKeyIt wrote:Code: Select all
j:=" ( 0.5x0.5p x xx xd )" RegExReplace(j,"[a-zA-Z](?Cfound)") found(Match){ msgbox % Match }
And I just want one alpha at a time. How can I use RegExReplace and RegExMatch to get it.0.5x0.5p
x
xx
xd
Code: Select all
RegExMatch(j,".?.*([a-zA-Z]).?.*",match)
regexReplace(j,"[a-zA-Z]",,count)
Loop, % count
{
strMatch := match%A_Index%
msgbox % strMatch
}