Posted on

Any Magento Class or Imnterface Alternative to Zend_Validate_Regex

i am Refactoring some code while doing I found Zend_Validate_Regex directly use in code

$validator = new Zend_Validate_Regex([‘pattern’ => ‘/^[a-z][a-z_0-9]{0,29}[a-z0-9]$/’]);

I want suggestions from Magneto Community is there any interface in Magneto Framework to use

if No, is this recommended to this class directly?

Thank You

Leave a Reply

Your email address will not be published. Required fields are marked *