Create a regex expression with operator 'AND'

/ Published in: PHP
Save to your folder(s)

Build a regex expression to all array elements are present in any order.
Gets an array of strings (Sample: array("Access Denied","error","could not be retrieved")
Return sample: '(?=.*Access Denied)(?=.*error)(?=.*could not be retrieved)

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.