I've a Laravel 5.8 Application and the application accepts both Hindi & English Text as an Input.
In order to prevent special characters, I've created a Regex Validation which allows English Characters of either case, Numbers, space and '/'.
'title' => 'required|min:3|regex:/^[A-Za-z0-9\-\/ ]+$/',
Furthermore, I have updated it for allowing Hindi Texts.
'title' => 'required|min:3|regex:/^[\u0900-\u097F]*[\s]?([\u0900-\u097F]*[\s]?)*?$/'
This regex /^[\u0900-\u097F]*[\s]?([\u0900-\u097F]*[\s]?)*?$/
does not seem to work. It does not allow Hindi Characters. For Example, I want this string to pass "गुढ़ी पाडवा/चेती चंद / उगाडी / Gudi Padwa/Cheti Chand / Ugadi"
However, this pattern "[A-Za-z0-9\u0900-\u097F\-\/ ]+"
works well in html tags, blade file, but not in the controller, when intercepted via Request
Please suggest a valid Regex for allowing Hindi Characters along with English in PHP