regex - PHP preg_replace escaped plus sign not working -


यह

  preg_replace ("/ [^ a-zA-Z0-9 [: स्थान:] [: खाली:] + -] / "," ", $ val);  

और प्लस चिन्ह बच गए

  preg_replace ("/ [^ a-zA-Z0-9 [: अंतरिक्ष:] [: रिक्त:] \ + -] / "," ", $ वेल);  

जब मैं प्लस चिह्नों की अनुमति देना चाहता हूँ, तब से वैल के प्लस चिह्नों को निकाल रहे हैं, मैं प्लस चिह्न से ठीक से कैसे बचता हूं?

मेरा सुझाव है:

  गूंज preg_replace ("/ [^ a-zA-Z0-9 [: space:] [: blank :] + \ -] / "," ", '::: परीक्षा +++ --- :::');  

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -