tell application "Keyboard Maestro Engine" set src to getvariable "Source" set s to getvariable "Search" set r to getvariable "Replace" set o to search src for s replace r with regex end tell