-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathv2_loop_parse_text.ahk
33 lines (29 loc) · 1.05 KB
/
v2_loop_parse_text.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
; How to pull some characters out of a random string of text
#Requires AutoHotkey v2.0
#SingleInstance Force
;
WorkingText := IniRead(A_ScriptFullPath, "SampleText") ; text is in the comment below
; only uncomment 1 loop parse workingtext at a time
loop parse workingtext ; every letter H o m e S
;loop parse workingtext, A_Tab ; on the tabs
;loop parse workingtext, A_Space ; on the spaces
;loop parse workingtext, "`n" ; on the newline
;loop parse workingtext,,"aeiouy" ; parse every letter, omit all the lower case vowels
;loop parse workingtext, "aeiouy" ; on the vowels
{
MsgBox A_LoopField,,"T2"
}
Esc::ExitApp
ExitApp
/* The sample text is stored in-line to make it easier to see how it works
To see hidden characters try pasting your text at regex101 dot com
[SampleText]
HomeSales ManagementProduction ManagementMaterials Links
To get additional help with this form, hover the mouse over the data
Audit Turn JobType DL BOM CKC KC PCB PRG Stn TA LRD Audited MF DT PK SP BM BP MFG DueDate
123Page size:
60
select
162 items in 3 pages
)
*/