diff --git a/nodes/core/logic/15-change.html b/nodes/core/logic/15-change.html
index ea360908f..b1ad880d8 100644
--- a/nodes/core/logic/15-change.html
+++ b/nodes/core/logic/15-change.html
@@ -56,7 +56,18 @@
defaults: {
action: {value:"change",required:true},
property: {value:"payload"},
- from: {value:""},
+ from: {value:"",validate: function(v) {
+ if (this.action == "change") {
+ try {
+ var re = new RegExp(this.from, "g");
+ return true;
+ } catch(err) {
+ RED.notify("Error: "+err.message,"error");
+ return false;
+ }
+ }
+ return true;
+ }},
to: {value:""},
name: {value:""}
},