What is the meaning of the Regular Expression ^(.)\1+$

Debanjan Ghosal

Since I am new of regular expression I well versed with Regex.

Can someone please help with the meaning of this Regex?

^(.)\1+$

bjfletcher

^(.)\1+$ is a clever regular expression that matches to any full line that has two or more letters all of which are identical. E.g.:

  • aaa
  • BBBBBBB

See comments for explanation of what each part of the regular expression does.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

What is the meaning of [\w\-] regular expression in PHP

From Dev

What's the meaning of ^ and $ symbols in regular expression?

From Dev

What's the meaning of python regular expression “\2”

From Dev

Meaning of \d{1-3 }in regular expression

From Dev

Meaning of "*" in a regular expression for grep

From Dev

meaning of dollar symbol in regular expression

From Dev

Meaning of Regular Expression with JavaScript and PHP

From Dev

What is the meaning of expression "+ + a"?

From Dev

error=$(mkdir test 2>&1) What is the meaning of that expression?

From Dev

What is the meaning of the following expression in scala?

From Dev

What is the meaning of the following expression in scala?

From Dev

What's the meaning of this expression in Java?

From Dev

What is the meaning of expression a = b != c;

From Dev

Does -* have any special meaning in regular expression?

From Dev

What's the meaning of square brackets in XCTAssertEqual(expression1: [T : U], expression2: [T : U])?

From Dev

What is the meaning of $(">", this)[1]?

From Dev

What is the meaning of $$1 in bash?

From Dev

What are `\.` and `i` in a regular expression?

From Dev

What is the definition of a regular expression?

From Dev

Java Regular Expression: what is " '- "

From Dev

What will be the regular expression for this?

From Dev

What is happening with this regular expression?

From Dev

$1 in regular expression javascript

From Dev

python regular expression "\1"

From Dev

Java Regular expression for 1=1

From Dev

What is the meaning of dot dot in this ggplot expression?

From Dev

What's the meaning of this perl regex expression?

From Dev

What is the bash meaning of [134-6] expression

From Dev

What is the meaning of an expression with the form (type) (value)?

Related Related

  1. 1

    What is the meaning of [\w\-] regular expression in PHP

  2. 2

    What's the meaning of ^ and $ symbols in regular expression?

  3. 3

    What's the meaning of python regular expression “\2”

  4. 4

    Meaning of \d{1-3 }in regular expression

  5. 5

    Meaning of "*" in a regular expression for grep

  6. 6

    meaning of dollar symbol in regular expression

  7. 7

    Meaning of Regular Expression with JavaScript and PHP

  8. 8

    What is the meaning of expression "+ + a"?

  9. 9

    error=$(mkdir test 2>&1) What is the meaning of that expression?

  10. 10

    What is the meaning of the following expression in scala?

  11. 11

    What is the meaning of the following expression in scala?

  12. 12

    What's the meaning of this expression in Java?

  13. 13

    What is the meaning of expression a = b != c;

  14. 14

    Does -* have any special meaning in regular expression?

  15. 15

    What's the meaning of square brackets in XCTAssertEqual(expression1: [T : U], expression2: [T : U])?

  16. 16

    What is the meaning of $(">", this)[1]?

  17. 17

    What is the meaning of $$1 in bash?

  18. 18

    What are `\.` and `i` in a regular expression?

  19. 19

    What is the definition of a regular expression?

  20. 20

    Java Regular Expression: what is " '- "

  21. 21

    What will be the regular expression for this?

  22. 22

    What is happening with this regular expression?

  23. 23

    $1 in regular expression javascript

  24. 24

    python regular expression "\1"

  25. 25

    Java Regular expression for 1=1

  26. 26

    What is the meaning of dot dot in this ggplot expression?

  27. 27

    What's the meaning of this perl regex expression?

  28. 28

    What is the bash meaning of [134-6] expression

  29. 29

    What is the meaning of an expression with the form (type) (value)?

HotTag

Archive