Question: Using the // delimiters, write the regular expression to match the word toucan written with characters of any case. 1 # Replace ??? with your
Using the // delimiters, write the regular expression to match the word "toucan" written with characters of any case.
1 # Replace ??? with your regex and we will test it against the following strings: 2 # 3 # "Toucan" (matches) 4 # "tOUcan" (matches) 5 # "tou can" (doesn't match - space breaks the word in two) 6 # "Youcan" (doesn't match - spelling is different) 7 # 8 # Don't forget the // 9 reg = ???
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
