Skip to content

Commit cfc5f67

Browse files
Completed Task
1 parent b9643b2 commit cfc5f67

File tree

1 file changed

+3
-0
lines changed
  • Regular-Expressions/Positive-and-Negative-Lookahead

1 file changed

+3
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
let sampleWord = "astronaut";
2+
let pwRegex = /(?=\w{6})(?=\w*\d{2})/;
3+
let result = pwRegex.test(sampleWord);

0 commit comments

Comments
 (0)