###VER: 1.0 Last Update: August 8, 2015
Author: @JMichaelTX at KM forum
###PURPOSE: Get a Max of N Words in String Using RegEx
• Returns all "words" in string UP TO a max of %NumberWordsOut%
• Provides for user-specified delimiters for word boundry
HOW TO USE:
(1) Select text containing all words
(2) Run KM Macro
CREDITS:
• Thanks to @maraca at StackOverflow.com for providing the RegEx pattern for this
• http://stackoverflow.com/a/31889232/4833660
• Thanks to Chris (@ccstone) for all of his help and guidance.
Please feel free to post all bug reports, comments, suggestions, ERs, etc.
###Download:
Get Max of N Words Using RegEx.kmmacros (10.2 KB)
###Macro Image