A subscriber reached out to me (after trying for a few hours) for some help on creating a Regular Expression to pull-out URLs from text. Specifically not including email addresses. Since he gave it a solid try I wanted to help him out. I did a google search and found this post which had the RegEx pattern for finding a URL and not an email address. I then took the pattern and put it on Regular Expressions 101 to make sure it would work in AutoHotkey. After that I adapted it to AutoHotkey code (see below) using RegExMatch.
Find a URL and not an email address
Code to Find a URL and not an email address
Script Highlight: Pull data about your computer with WMI by shajul.
Video Hour 1 & 2 : AHK string functions in Excel
- Webinar on Excel and COM
- Excel and AHK Tutorials
- Joe’s Excel Function Library
- Excel Function Library from Tre4shunter
Books on RPA (Robotics Process Automation) that I mentioned in the webinar
Below are links to books I showed during the webinar. I put them into two groups (those I like/recommend and those I don’t). I’m more of a “glass is half-full” kind of guy and think technology is good. The books I don’t recommend were much more negative towards technology. While I don’t recommend them, I think time will tell who is right/wrong. Personally any of the following you buy I’d try and buy as used. Many are pretty expensive new (probably because of the small market size)
Recommended Robotics Process Automation books
Service Automation: Robots and the Future of Work 2016 -Great book!
Robotic Process Automation and Risk Mitigation: The Definitive Guide 2017
Robotic Process and Cognitive Automation: The Next Phase 2018 -Great book!
The Singularity Is Near: When Humans Transcend Biology 2019 – very interesting
Life After Google: The Fall of Big Data and the Rise of the Blockchain Economy 2018 – some wild ideas here
The Human Advantage: The Future of American Work in an Age of Smart Machines 2018
The Glass Cage: How Our Computers Are Changing Us 2015
Managing IT as a Strategic Resource 1997
Beyond the IT Productivity Paradox 1999 – old but still interesting
Not recommended but still on the RPA topic
In The Age Of The Smart Machine: The Future Of Work And Power 1989
The Lights in the Tunnel: Automation, Accelerating Technology and the Economy of the Future 2009
A Dangerous Master: How to Keep Technology from Slipping Beyond Our Control 2015
Rise of the Robots: Technology and the Threat of a Jobless Future 2016
We also mentioned using ternary operators
- Intro to Ternary tutorial by Joe
- Ternary walk through by VxE
- Not Ternary, but you might like one line operators
and Alternate Data Stream as data storage
Here’s the code Jackie walked through.
Regular Expressions are incredibly helpful for day-to-day tasks! In this short video I demonstrate how easy it is to use a Regular Expression (RegEx) in AutoHotkey to extract email addresses from text. The first half of the video shows how I use it to parse the haystack listed in the script. The second half of the video I make a minor tweak and adapt it to work with any program that you can copy text to the clipboard.
Below is the code to extract emails with a Regular Expression that I demonstrate in the video