filter data which from user side use regex, and returns a result data whose format is declared by coder.