php preg_match cobine to expression

I have a form where the user has to enter full name in Arabic or English. but not number , How I can combine to expression with OR statment
I used the perg_match: For Arabic:
[php]if(preg_match("/\p{Arabic}/u", $_POST[“name”]) === 0) $errname = '

Please enter your full name - يرجى إدخال الإسم الكامل

'; [/php]

For English:
[php]if(preg_match("/^[A-Z][a-zA-Z ]+$/ ", $_POST[“name”]) === 0) $errname = '

Please enter your full name - يرجى إدخال الإسم الكامل

'; [/php]

thx

Hello ,

Im still struggling with this, just need to know how to combine with or using the || , I tried to but it didnt work…

Hope I can get the answer

Sponsor our Newsletter | Privacy Policy | Terms of Service