regex - Match a PHP class with a Regular Expression -


मैं एक फ़ाइल से php वर्गों को पकड़ना चाहता हूं:

  class a {function test} {}} वर्ग ब एक {फ़ंक्शन टेस्ट () {}}  

फैली हुई है और परिणाम मिलान होना चाहिए

  class a {function test} () { }}  

और

  वर्ग ब एक फ़ंक्शन परीक्षण () {}}  

रिज़ेक्स प्रोग्रामिंग भाषाओं के व्याकरण के लिए 'खराब' हैं इसके बजाय टोकनेइज़र फ़ंक्शन पर विचार करें। जैसे यह भी देखें


Comments

Popular posts from this blog

google indexing -

wpf - Custom Message Box Advice -

Eclipse CDT variable colors in editor -