Regular Expressions

Regular expression is a way to check the format or content of a string.

Regular expression are entered within slashes. An 'i' after the slashes means a Ignore case when searching, while a 'g' means a global search (i.e. find all iterations of the regular expressions in the field).



Excercise #1

In this excercise we will ask the user to tell us what they're looking for, and in what, and then we will tell them if a match was found or not.

Provide a sentence you want to search in

What do you want to search for?

Ignore case sensitive Search all