From f16e55f6b95d3105e425d77d0dd53486de9854fa Mon Sep 17 00:00:00 2001 From: Aakash Panchal <51417248+Aakash-Panchal27@users.noreply.github.com> Date: Sun, 8 Mar 2020 12:54:18 +0530 Subject: [PATCH] Update character_classes.html --- Akash Articles/RegEx/character_classes.html | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/Akash Articles/RegEx/character_classes.html b/Akash Articles/RegEx/character_classes.html index cbc0278..1357f6d 100644 --- a/Akash Articles/RegEx/character_classes.html +++ b/Akash Articles/RegEx/character_classes.html @@ -66,7 +66,7 @@
RegEx: [ABC][12]
- Text: A1 grade is the best, but I scored A2.
A1 grade is the best, but I scored A2.
Answer:
@@ -74,8 +74,9 @@RegEx: [0123456789][12345]:[abcdef][67890]:[0123456789][67890]:[1234589][abcdef]
- Text: Let's match 14:f6:89:3c mac address type of pattern. Other patterns are 51:a6:90:c5, 44:t6:u9:3d, 72:c8:39:8e.
RegEx: [0123456789][12345]:[abcdef][67890]:[1234589][abcdef]
+ Text: Let's match 14:f6:3c mac address type of pattern.
+ Other patterns are 51:a6:c5, 44:t6:3d, 72:c8:8e.
Answer:
@@ -95,7 +96,7 @@Predict the output for the following:
RegEx: [^13579]A[^abc]z3[590*-]
-
Text: 1Abz33 will match or 2Atz30 and 8Adz3*.
1Abz33 will match or 2Atz30 and 8Adz3*.
Answer:
@@ -189,22 +190,20 @@Note: \r
is known as a windows style new-line character.
Predict the output of the following regex:
+RegEx: [01][01][0-1]\W\s\d
-
Text: Binary to decimal data: 001- 1, 010- 2, 011- 3, a01- 4, 100- 4.
Predict the output of the following regex:
+ RegEx: [01][01][0-1]\W\s\d
+
Text: Binary to decimal data: 001- 1, 010- 2, 011- 3, a01- 4, 100- 4.
Answer:
Write a regex to match 28th February of any year. Date is in dd-mm-yyyy format.
Answer: 28-02-\d\d\d\d