code: function createRegex(value, modifier) {
      if (Type.isString(value)) {
          return new RegExp(value, modifier ? modifier : 'g');
      }
      throw new Error('Core.createRegex: Value is not string');
  }
docs: @since 0.0.1
  @author Igor Ivanovic
  @function createRegex
  
  @description
  Creates regular expresion