generate rules for validation of characters in model forms? online tool?

Hello, there is some generator to validate some characters in the model forms ?, I searched the internet and have not found information and an online tool to either generate rules: ‘pattern’=>’/^[\p{L}\s,0-9]+$/u’,

now I want a rule that allows the following characters: + , - , 0-9

‘pattern’ => ‘#^[±0-9]+$#’