php - Whats wrong in regular expression -


क्या गलत है:

  $ pattern = '/ 9 [0-5 [7 -9]] {1} [\\ d] {10}) | ([0-2] \\ d {11} / '; $ विषय =' 971093342689 ';   

Php

  preg_match ($ पैटर्न, $ विषय)   

एक त्रुटि प्राप्त करने की कोशिश कर रहा है:

  preg_match ): संकलन विफल: ऑफसेट 22 में बेमेल कणों    

दो कोष्ठक बंद नहीं हैं: <पूर्व> $ पैटर्न = '/ 9 [0-5 [7-9]] {1} [\\ d] {10}) | ([0-2] \\ d {11 } / '; ^^^^

यदि आपको यह संकेत है, तो आपको इसे बचाना होगा। अन्यथा आपको एक खुला और एक बंद कोष्ठक की जरूरत है जिसमें आप regexp हैं।

Comments

Popular posts from this blog

mysql - where clause in inner join query -

php - MySQL Query for Advanced Search multiple criteria -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -