Files
Randell Dawson 1494a50123 fix(guide): restructure curriculum guide articles (#36501)
* fix: restructure certifications guide articles
* fix: added 3 dashes line before prob expl
* fix: added 3 dashes line before hints
* fix: added 3 dashes line before solutions
2019-07-24 13:29:27 +05:30

605 B

title
title
Match Anything with Wildcard Period

Match Anything with Wildcard Period


Hints

Hint 1

The dot . is the key in this challenge.

Hint 2

You should put the dot on the right position.


Solutions

Solution 1 (Click to Show/Hide)
let exampleStr = "Let's have fun with regular expressions!";
let unRegex = /.un/; // Change this line
let result = unRegex.test(exampleStr);

Code Explanation

The period . will be any one character so the strings "run", "sun", "fun" and "pun" have the same un charaters.