Display Regex Data

You can use PlantUML to visualize your Regular expression (Regex).

To activate this feature, the diagram must:
  • begin with @startregex keyword
  • end with @endregex keyword.

Litteral text

🎉 Copied!

@startregex
title litteralText
abc
@endregex

🎉 Copied!

@startregex
tite shorthandCharacterClasses
\d\w\s
@endregex

🎉 Copied!

@startregex
title litteralCharacterSequence
\Qfoo\E
@endregex

🎉 Copied!

@startregex
title anyCharacter
.
@endregex

🎉 Copied!

@startregex
title specialEscapes
\t\r\n\a\e\f
@endregex

🎉 Copied!

@startregex
title octalEscapes
\0377\337
@endregex

🎉 Copied!

@startregex
title unicodeEscapes
\uFFFF\x{FFFF}
@endregex

Range

🎉 Copied!

@startregex
title range
[0-9]
@endregex

Alternation

🎉 Copied!

@startregex
title alternation
a|b
@endregex

Repetition

🎉 Copied!

@startregex
title optional
ab?
@endregex

🎉 Copied!

@startregex
title requiredRepetition
ab+
@endregex

🎉 Copied!

@startregex
title optionalRepetition
ab*
@endregex

🎉 Copied!

@startregex
title rangeRepetition
ab{1,2}
@endregex

🎉 Copied!

@startregex
title minimumRepetition
ab{1}c{1,}
@endregex

🎉 Copied!

@startuml


@startregex
title repetitionEquivalance
a{0,1}b{1,} is the same as a?b+
@endregex
@enduml

Categories

🎉 Copied!

@startregex
title unicodeCategories
letter \p{L}\p{Letter} lower \p{Ll}\p{Lowercase_letter}
@endregex

🎉 Copied!

@startregex
title unicodeScripts
latin \p{Latin}
@endregex

🎉 Copied!

@startregex
title unicodeBlocks
\p{InGeometric_Shapes}
@endregex


Privacy Policy      Advertise