Hey K,
Very good.
You mean the RegEx (regular expressions) – or the AppleScript – or both?
For RegEx see this topic on the Wiki:
For AppleScript take a peek at these:
References For Learning & Using Applescript.txt
Learning & Using AppleScript & JavaScript for Automation (JXA)
-Chris