im使用regular expression
如(16.00 + 28.66 = 44.66)
如44.66 ,(26.00) as 26.00
使用正則表達式如何獲得(16.00 + 28.66 = 44.66),爲44.66和(99)如99
我有麻煩,以顯示數據時,其just(99)
作爲99
得到的值沒有任何小數。
我用下面的代碼,到現在爲止
string amount = DropDownList1.SelectedItem.Text;
Regex regex = new Regex("(\\d+\\.\\d{2})(?=\\))", RegexOptions.Multiline | RegexOptions.CultureInvariant
| RegexOptions.IgnorePatternWhitespace
| RegexOptions.Compiled
);
有人請告訴我,我怎麼可以在沒有任何顯示十進制值..
Eg-(99) as 99
非常感謝!進出口新至REGx和不知道如何與it.thanks再次工作:) –