For some time I have wanted a 'Template' feature in 3DC that would prompt me to replace a specific string within a clipboard item. So, I build a simple Action to prompt me for a regex string and a replacement string so that i can get the same functionality.

'This action prompts the user to input a RegEx expression to search for in the value of the clipboard'item. Then, it prompts the user to input a replacement string. Finally, the action replaces the'RegEx expression with the replacement string.

'Initialize variablesDim strReplaceDim objRegExp

'Create RegEx object and set the global attribute to True so that it will replace every occurance foundSet objregexp = New regexpobjregexp.global = True