Base version without validating that user input is a valid regexp & using js RegExp to get the work done
Authored by: alessio-gaspar 2014-05-10
Parent: [r2]
Child: [r4]