Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
Last active April 26, 2021 15:39
Show Gist options
  • Save JoeGlines/ba3554528e968e3934a55bf2f9eb5873 to your computer and use it in GitHub Desktop.
Save JoeGlines/ba3554528e968e3934a55bf2f9eb5873 to your computer and use it in GitHub Desktop.
;*******************************************************
; Want a clear path for learning AutoHotkey; Take a look at our AutoHotkey Udemy courses. They're structured in a way to make learning AHK EASY
; Right now you can get a coupon code here: https://the-Automator.com/Learn
;*******************************************************
;~ Browser_Forward::Reload
;~ Browser_Back::
str:="Hello, world how are you doing" ;define String
RegExMatch(str,"O)(?P<Word>\w+)(?P<delim>[\s|?|.|,]+)",obj)
MsgBox % " value: " obj.Word "`r"
. " value: " obj.Value["Word"] "`r"
. "position: " obj.Pos["Word"] "`r"
. " Length: " obj.len["Word"] "`r"
. " Name: " obj.Name["Word"] "`r"
. " Count: " obj.Count() "`r"
MsgBox % " value: " obj.delim "`r"
. " value: " obj.Value["Delim"] "`r"
. "position: " obj.Pos["delim"] "`r"
. " Length: " obj.len["delim"] "`r"
. " Name: " obj.Name["delim"] "`r"
. " Count: " obj.Count() "`r"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment