我想寫一個正則表達式來將下列字符串拆分成段。.NET正則表達式來檢測和拆分字符串
#if [Customer.OrderQuantity] > 5 #then 1000 #if [Customer.OrderQuantity] < 5 #then 500 #else 100
1st Segment: #if [Customer.OrderQuantity] > 5 #then 1000
2nd Segment: #if [Customer.OrderQuantity] < 5 #then 500
3rd Segment: #else 100
您的建議非常感謝!
我完全不知道爲什麼這篇文章被拒絕。如果你能發表評論會更有幫助。 –
不是我,但我認爲downvoter希望你表現出一些努力。像,你有什麼嘗試? – leppie
沒有必要留下評論,這是顯而易見的,這篇文章顯示沒有努力,只是要求解決方案(你寫了建議)。 [你有什麼嘗試?](http://www.whathaveyoutried.com) – stema