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:
new RegExp(/Hello World/i);
Is this functionality working and I am missing some documentation?
Hey, can you please give us a Repl link so we can help you?
If this is Python, then regexes don't work like that so here's some quick documentation for you. https://docs.python.org/3/library/re.html
Please upvote my comment if it was helpful or useful in any way
Edit: To clarify, I can't provide a Repl link because it's not on a project, it's about a feature of Repl itself.