I am trying to use regular expressions in test cases and I am unable to get anything other than literal matching to work. Specifically, I am trying to check the output of:
print ("Hello World")
and I have set the regular expression to each of the following without success:
/Hello World/i
/Hello World/
new RegExp(/Hello World/i);
Is this functionality working and I am missing some documentation?
Are Regular Expressions in Test Cases for Class Assignments Working?
I am trying to use regular expressions in test cases and I am unable to get anything other than literal matching to work. Specifically, I am trying to check the output of:
print ("Hello World")
and I have set the regular expression to each of the following without success:
/Hello World/i
/Hello World/
new RegExp(/Hello World/i);
Is this functionality working and I am missing some documentation?
How did this get marked as an answer? It doesn't address the question at all, let alone answer it.