XRegex is an AppleScript library to provide pattern matthing with regular expressions.
You can obtain matched texts and replace these.
NSRegularExpression is used in the interanl.
Required to install with XRegex .
The manual consisted of the reference generated by AppleScriptDoc and sample code is stored in the bundle of "XRegex.scptd". After installation of OpenHelpBook.scptd, run "XRegex" from Script menu.
The detail manual of "XRegex" should be displayed in Help Viewer.
Copy XRegex.scptd into either following locations.
Your Home/Library/Script Libraries/
or
/Library/Script Libraries/