I have regEx of each input and I'd like to show user example of correct input value.
regEx:
^\+[0-9]{1,3}\.[0-9]{10,19}
show for user:
+0.1234567890
May be anybody know plugin for my task?
I have regEx of each input and I'd like to show user example of correct input value.
regEx:
^\+[0-9]{1,3}\.[0-9]{10,19}
show for user:
+0.1234567890
May be anybody know plugin for my task?
Use "source" property of the RegExp object. This property contains the text of the RegExp
var regexp = /^\+[0-9]{1,3}\.[0-9]{10,19}/;
document.write("The RegExp is: "+regexp.source);
It displays => The RegExp is : ^+[0-9]{1,3}.[0-9]{10,19}