Skip to content

Commit 69f3b14

Browse files
author
JorvanW
committed
Merge branch 'feature/form-controls' of https://github.com/JorvanW/Module-Onboarding into feature/form-controls
2 parents c631888 + 062b570 commit 69f3b14

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Form-Controls/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ Writing that out as a series of questions to ask yourself:
2828
All fields are required.
2929
Do not write a form action for this project.
3030

31+
> [!TIP]
32+
> To check whether the customer's name contains at least two non-space characters you may need to use a **regular expression** (or **regex** for short), which is a tool used to match patterns in text. If you wish to learn more about regular expressions there are plenty of resources on the web including the [official MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions), but for this task you can use this regex that we have pre-written for you: `.*\S.*\S.*`.
33+
>
34+
> Now you have the regular expression, it's up to you to figure out how to use it in the context of an HTML form!
35+
3136
## Acceptance Criteria
3237

3338
### Developers must test their work.

0 commit comments

Comments
 (0)