You define the following regular expression of currency values:<br /> regex tx = new regex("^-?\d+(\.\d{2})?$")<br /> 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.<br /> What should you do?()<p> You define the following regular expression of currency values:<br /> regex tx = new regex("^-?\d+(\.\d{2})?$")<br /> 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.<br /> What should you do?()</p>
A、A.The tx.Matches(Bill)
B、B.The tx.Equals(Bill)
C、C.The tx.Match(Bill)
D、D.The tx.IsMatch(Bill)