Question: Regular Expressions Using the // delimiters, write the regular expression to match any string which begins with the word Bananas 1 # Replace ??? with
Regular Expressions
Using the // delimiters, write the regular expression to match any string which begins with the word "Bananas"
1 # Replace ??? with your regex and we will test it against the following strings: 2 # 3 # "Bananas" (matches) 4 # "Bananas are yellow" (matches) 5 # "bananas" (doesn't match - wrong case) 6 # "Three Bananas" (doesn't match - not at the beginning of the string) 7 reg = /???/
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
