Welcome Guest, Not a member yet? Register   Sign In
Quick question about regex_match
#1

When using regex_match, how would I be able to use the - character? An example of the code is posted below. What would be the correct format? Thanks! 
 
Code:
$rules = [
    'date' => 'required|min_length[2]|max_length[50]|regex_match[/^+[a-zA-Z0-9.- ]+$/]',
];
Reply


Messages In This Thread
Quick question about regex_match - by Son of Troy - 07-14-2022, 03:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB