首页 综合 Youdefinethefollowingregularexpressionofcurrencyvalu

Youdefinethefollowingregularexpressionofcurrencyvalu

You define the following regular expression of currency values:regex tx = new regex(^-?\d+(\.\d{2})?$)You are required to write code that will be used to find whether a string in the variable named Bill matches the regular expression or not. You are also required to use this code as the expression in a conditional statement and need to know which code segment to use.What should you do?()

A.The tx.Matches(Bill)

B.The tx.Equals(Bill)

C.The tx.Match(Bill)

D.The tx.IsMatch(Bill)

参考答案:D

本文来自网络,不代表煤炭资讯立场。转载请注明出处: http://www.mtxh.cn/zh/415241.html
上一篇
下一篇

作者: Anita

为您推荐

返回顶部