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 @@
  1. RegEx: [ABC][12]
    - Text: A1 grade is the best, but I scored A2.

    + Text: A1 grade is the best, but I scored A2.

    Answer:

    @@ -74,8 +74,9 @@
  2. -
  3. 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.

    +
  4. 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*.

    +
    Text: 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:

    +

    Problems

      -
    1. RegEx: [01][01][0-1]\W\s\d -
      Text: Binary to decimal data: 001- 1, 010- 2, 011- 3, a01- 4, 100- 4.

      +
    2. 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:

    3. -
    -

    Problems

    -
    1. Write a regex to match 28th February of any year. Date is in dd-mm-yyyy format.

      Answer: 28-02-\d\d\d\d

      @@ -226,7 +225,6 @@ -