Unicode Cheat Sheet

Jan 06, 2010 Unicode cheat sheet. From Second Life Wiki. Jump to: navigation, search. Second Life Wiki Unicode cheat sheet. Pasted from an original notecard compiled by Gooden. To show icons unicode choose 'Show icons codes' in sidebar. If you use 2.0 font version as standalone font - you should update it carefully, because 2.1 ttf file cheat sheet hasn't backward compatibility with 2.0. Sorry for that, but in 2.0 was a bug that I couldn't remove without breaking backward compatibility. Cheatsheet Font Awesome Font Awesome Free's Cheatsheet After you're set up on the desktop or in code, quickly copy and paste the glyph, name, or unicode value of any icon. Cheatsheet Font Awesome Font Awesome Free's Cheatsheet After you're set up on the desktop or in code, quickly copy and paste the glyph, name, or unicode value of any icon.

Pasted from an original notecard compiled by Gooden Uggla.

☺ ☻ ♥ ♦ ♣ ♠ • ◘ ○ ◙ ♂ ♀ ♪ ♫ ☼ ► ◄ ↕ ‼ ¶ ☀

☀ ☁ ☂ ☃ ☄ ★ ☆ ☇ ☎ ☏ ☙ ☚ ☛ ☜ ☝ ☞] U+261E ☞ WHITE RIGHT POINTING INDEX

[☟] U+261F ☟ WHITE DOWN POINTING INDEX

[☠] U+2620 ☠ SKULL AND CROSSBONES

[☡] U+2621 ☡ CAUTION SIGN

[☢] U+2622 ☢ RADIOACTIVE SIGN

[☣] U+2623 ☣ BIOHAZARD SIGN

[☤] U+2624 ☤ CADUCEUS

[☥] U+2625 ☥ ANKH

[☦] U+2626 ☦ ORTHODOX CROSS

[☧] U+2627 ☧ CHI RHO

[☨] U+2628 ☨ CROSS OF LORRAINE

[☩] U+2629 ☩ CROSS OF JERUSALEM

[☪] U+262A ☪ STAR AND CRESCENT

[☫] U+262B ☫ FARSI SYMBOL

[☬] U+262C ☬ ADI SHAKTI

[☭] U+262D ☭ HAMMER AND SICKLE

[☮] U+262E ☮ PEACE SYMBOL

[☯] U+262F ☯ YIN YANG

[☸] U+2638 ☸ WHEEL OF DHARMA

[☹] U+2639 ☹ WHITE FROWNING FACE

[☺] U+263A ☺ WHITE SMILING FACE

[☻] U+263B ☻ BLACK SMILING FACE

[☼] U+263C ☼ WHITE SUN WITH RAYS

[☽] U+263D ☽ FIRST QUARTER MOON

[☾] U+263E ☾ LAST QUARTER MOON

[☿] U+263F ☿ MERCURY

[♀] U+2640 ♀ FEMALE SIGN

[♁] U+2641 ♁ EARTH

[♂] U+2642 ♂ MALE SIGN

[♃] U+2643 ♃ JUPITER

[♄] U+2644 ♄ SATURN

[♅] U+2645 ♅ URANUS

[♆] U+2646 ♆ NEPTUNE

[♇] U+2647 ♇ PLUTO

[♈] U+2648 ♈ ARIES

[♉] U+2649 ♉ TAURUS

[♊] U+264A ♊ GEMINI

[♋] U+264B ♋ CANCER

[♌] U+264C ♌ LEO

[♍] U+264D ♍ VIRGO

[♎] U+264E ♎ LIBRA

[♏] U+264F ♏ SCORPIUS

[♐] U+2650 ♐ SAGITTARIUS

[♑] U+2651 ♑ CAPRICORN

[♒] U+2652 ♒ AQUARIUS

[♓] U+2653 ♓ PISCES

[♔] U+2654 ♔ WHITE CHESS KING

[♕] U+2655 ♕ WHITE CHESS QUEEN

[♖] U+2656 ♖ WHITE CHESS ROOK

[♗] U+2657 ♗ WHITE CHESS BISHOP

[♘] U+2658 ♘ WHITE CHESS KNIGHT

[♙] U+2659 ♙ WHITE CHESS PAWN

[♚] U+265A ♚ BLACK CHESS KING

[♛] U+265B ♛ BLACK CHESS QUEEN

[♜] U+265C ♜ BLACK CHESS ROOK

[♝] U+265D ♝ BLACK CHESS BISHOP

[♞] U+265E ♞ BLACK CHESS KNIGHT

[♟] U+265F ♟ BLACK CHESS PAWN

[♠] U+2660 ♠ BLACK SPADE SUIT

[♡] U+2661 ♡ WHITE HEART SUIT

[♢] U+2662 ♢ WHITE DIAMOND SUIT

[♣] U+2663 ♣ BLACK CLUB SUIT

[♤] U+2664 ♤ WHITE SPADE SUIT

[♥] U+2665 ♥ BLACK HEART SUIT

[♦] U+2666 ♦ BLACK DIAMOND SUIT

[♧] U+2667 ♧ WHITE CLUB SUIT

[♨] U+2668 ♨ HOT SPRINGS

[♩] U+2669 ♩ QUARTER NOTE

[♪] U+266A ♪ EIGHTH NOTE

[♫] U+266B ♫ BEAMED EIGHTH NOTES

[♬] U+266C ♬ BEAMED SIXTEENTH NOTES

[♭] U+266D ♭ MUSIC FLAT SIGN

[♮] U+266E ♮ MUSIC NATURAL SIGN

[♯] U+266F ♯ MUSIC SHARP SIGN

[♰] U+2670 ♰ WEST SYRIAC CROSS

[♱] U+2671 ♱ EAST SYRIAC CROSS

[♲] U+2672 ♲ UNIVERSAL RECYCLING SYMBOL

[♻] U+267B ♻ BLACK UNIVERSAL RECYCLING SYMBOL

[♼] U+267C ♼ RECYCLED PAPER SYMBOL

[♽] U+267D ♽ PARTIALLY-RECYCLED PAPER SYMBOL

[⚀] U+2680 ⚀ DIE FACE-1

[⚁] U+2681 ⚁ DIE FACE-2

[⚂] U+2682 ⚂ DIE FACE-3

[⚃] U+2683 ⚃ DIE FACE-4

Unicode Cheat Sheet Pdf

[⚄] U+2684 ⚄ DIE FACE-5

[⚅] U+2685 ⚅ DIE FACE-6

[⚆] U+2686 ⚆ WHITE CIRCLE WITH DOT RIGHT

[⚇] U+2687 ⚇ WHITE CIRCLE WITH TWO DOTS

[⚈] U+2688 ⚈ BLACK CIRCLE WITH WHITE DOT RIGHT

[⚉] U+2689 ⚉ BLACK CIRCLE WITH TWO WHITE DOTS

[✁] U+2701 ✁ UPPER BLADE SCISSORS

[✂] U+2702 ✂ BLACK SCISSORS

[✃] U+2703 ✃ LOWER BLADE SCISSORS

[✄] U+2704 ✄ WHITE SCISSORS

[✆] U+2706 ✆ TELEPHONE LOCATION SIGN

[✇] U+2707 ✇ TAPE DRIVE

[✈] U+2708 ✈ AIRPLANE

[✉] U+2709 ✉ ENVELOPE

[✌] U+270C ✌ VICTORY HAND

[✍] U+270D ✍ WRITING HAND

[✎] U+270E ✎ LOWER RIGHT PENCIL

[✏] U+270F ✏ PENCIL

[✐] U+2710 ✐ UPPER RIGHT PENCIL

[✑] U+2711 ✑ WHITE NIB

[✒] U+2712 ✒ BLACK NIB

[✓] U+2713 ✓ CHECK MARK

[✔] U+2714 ✔ HEAVY CHECK MARK

[✕] U+2715 ✕ MULTIPLICATION X

[✖] U+2716 ✖ HEAVY MULTIPLICATION X

[✗] U+2717 ✗ BALLOT X

[✘] U+2718 ✘ HEAVY BALLOT X

[✙] U+2719 ✙ OUTLINED GREEK CROSS

[✚] U+271A ✚ HEAVY GREEK CROSS

[✛] U+271B ✛ OPEN CENTRE CROSS

[✜] U+271C ✜ HEAVY OPEN CENTRE CROSS

[✝] U+271D ✝ LATIN CROSS

[✞] U+271E ✞ SHADOWED WHITE LATIN CROSS

[✟] U+271F ✟ OUTLINED LATIN CROSS

[✠] U+2720 ✠ MALTESE CROSS

[✡] U+2721 ✡ STAR OF DAVID

[✢] U+2722 ✢ FOUR TEARDROP-SPOKED ASTERISK

[✣] U+2723 ✣ FOUR BALLOON-SPOKED ASTERISK

[✤] U+2724 ✤ HEAVY FOUR BALLOON-SPOKED ASTERISK

[✥] U+2725 ✥ FOUR CLUB-SPOKED ASTERISK

[✦] U+2726 ✦ BLACK FOUR POINTED STAR

[✧] U+2727 ✧ WHITE FOUR POINTED STAR

[✩] U+2729 ✩ STRESS OUTLINED WHITE STAR

[✪] U+272A ✪ CIRCLED WHITE STAR

[✫] U+272B ✫ OPEN CENTRE BLACK STAR

[✬] U+272C ✬ BLACK CENTRE WHITE STAR

[✭] U+272D ✭ OUTLINED BLACK STAR

[✮] U+272E ✮ HEAVY OUTLINED BLACK STAR

[✯] U+272F ✯ PINWHEEL STAR

[✰] U+2730 ✰ SHADOWED WHITE STAR

[✱] U+2731 ✱ HEAVY ASTERISK

[✲] U+2732 ✲ OPEN CENTRE ASTERISK

[✳] U+2733 ✳ EIGHT SPOKED ASTERISK

[✴] U+2734 ✴ EIGHT POINTED BLACK STAR

[✵] U+2735 ✵ EIGHT POINTED PINWHEEL STAR

[✶] U+2736 ✶ SIX POINTED BLACK STAR

[✷] U+2737 ✷ EIGHT POINTED RECTILINEAR BLACK STAR

[✸] U+2738 ✸ HEAVY EIGHT POINTED RECTILINEAR BLACK STAR

[✹] U+2739 ✹ TWELVE POINTED BLACK STAR

[✺] U+273A ✺ SIXTEEN POINTED ASTERISK

[✻] U+273B ✻ TEARDROP-SPOKED ASTERISK

[✼] U+273C ✼ OPEN CENTRE TEARDROP-SPOKED ASTERISK

[✽] U+273D ✽ HEAVY TEARDROP-SPOKED ASTERISK

[✾] U+273E ✾ SIX PETALLED BLACK AND WHITE FLORETTE

[✿] U+273F ✿ BLACK FLORETTE

[❀] U+2740 ❀ WHITE FLORETTE

[❁] U+2741 ❁ EIGHT PETALLED OUTLINED BLACK FLORETTE

[❂] U+2742 ❂ CIRCLED OPEN CENTRE EIGHT POINTED STAR

[❃] U+2743 ❃ HEAVY TEARDROP-SPOKED PINWHEEL ASTERISK

[❄] U+2744 ❄ SNOWFLAKE

[❅] U+2745 ❅ TIGHT TRIFOLIATE SNOWFLAKE

[❆] U+2746 ❆ HEAVY CHEVRON SNOWFLAKE

[❇] U+2747 ❇ SPARKLE

[❈] U+2748 ❈ HEAVY SPARKLE

[❉] U+2749 ❉ BALLOON-SPOKED ASTERISK

[❊] U+274A ❊ EIGHT TEARDROP-SPOKED PROPELLER ASTERISK

[❋] U+274B ❋ HEAVY EIGHT TEARDROP-SPOKED PROPELLER ASTERISK

[❍] U+274D ❍ SHADOWED WHITE CIRCLE

[❏] U+274F ❏ LOWER RIGHT DROP-SHADOWED WHITE SQUARE

[❐] U+2750 ❐ UPPER RIGHT DROP-SHADOWED WHITE SQUARE

[❑] U+2751 ❑ LOWER RIGHT SHADOWED WHITE SQUARE

[❒] U+2752 ❒ UPPER RIGHT SHADOWED WHITE SQUARE

[❖] U+2756 ❖ BLACK DIAMOND MINUS WHITE X

[❘] U+2758 ❘ LIGHT VERTICAL BAR

[❙] U+2759 ❙ MEDIUM VERTICAL BAR

[❚] U+275A ❚ HEAVY VERTICAL BAR

[❛] U+275B ❛ HEAVY SINGLE TURNED COMMA QUOTATION MARK ORNAMENT

[❜] U+275C ❜ HEAVY SINGLE COMMA QUOTATION MARK ORNAMENT

[❝] U+275D ❝ HEAVY DOUBLE TURNED COMMA QUOTATION MARK ORNAMENT

[❞] U+275E ❞ HEAVY DOUBLE COMMA QUOTATION MARK ORNAMENT

[❡] U+2761 ❡ CURVED STEM PARAGRAPH SIGN ORNAMENT

[❢] U+2762 ❢ HEAVY EXCLAMATION MARK ORNAMENT

[❣] U+2763 ❣ HEAVY HEART EXCLAMATION MARK ORNAMENT

[❤] U+2764 ❤ HEAVY BLACK HEART

[❥] U+2765 ❥ ROTATED HEAVY BLACK HEART BULLET

[❦] U+2766 ❦ FLORAL HEART

[❧] U+2767 ❧ ROTATED FLORAL HEART BULLET

[❨] U+2768 ❨ MEDIUM LEFT PARENTHESIS ORNAMENT

[❩] U+2769 ❩ MEDIUM RIGHT PARENTHESIS ORNAMENT

[❪] U+276A ❪ MEDIUM FLATTENED LEFT PARENTHESIS ORNAMENT

Unicode Cheat Sheet

[❫] U+276B ❫ MEDIUM FLATTENED RIGHT PARENTHESIS ORNAMENT

[❬] U+276C ❬ MEDIUM LEFT-POINTING ANGLE BRACKET ORNAMENT

[❭] U+276D ❭ MEDIUM RIGHT-POINTING ANGLE BRACKET ORNAMENT

[❮] U+276E ❮ HEAVY LEFT-POINTING ANGLE QUOTATION MARK ORNAMENT

[❯] U+276F ❯ HEAVY RIGHT-POINTING ANGLE QUOTATION MARK ORNAMENT

[❰] U+2770 ❰ HEAVY LEFT-POINTING ANGLE BRACKET ORNAMENT

[❱] U+2771 ❱ HEAVY RIGHT-POINTING ANGLE BRACKET ORNAMENT Second life second life.

[❲] U+2772 ❲ LIGHT LEFT TORTOISE SHELL BRACKET ORNAMENT

[❳] U+2773 ❳ LIGHT RIGHT TORTOISE SHELL BRACKET ORNAMENT

[❴] U+2774 ❴ MEDIUM LEFT CURLY BRACKET ORNAMENT

[❵] U+2775 ❵ MEDIUM RIGHT CURLY BRACKET ORNAMENT

[❶] U+2776 ❶ DINGBAT NEGATIVE CIRCLED DIGIT ONE

[❷] U+2777 ❷ DINGBAT NEGATIVE CIRCLED DIGIT TWO

[❸] U+2778 ❸ DINGBAT NEGATIVE CIRCLED DIGIT THREE

[❹] U+2779 ❹ DINGBAT NEGATIVE CIRCLED DIGIT FOUR

[❺] U+277A ❺ DINGBAT NEGATIVE CIRCLED DIGIT FIVE

[❻] U+277B ❻ DINGBAT NEGATIVE CIRCLED DIGIT SIX

[❼] U+277C ❼ DINGBAT NEGATIVE CIRCLED DIGIT SEVEN

[❽] U+277D ❽ DINGBAT NEGATIVE CIRCLED DIGIT EIGHT

[❾] U+277E ❾ DINGBAT NEGATIVE CIRCLED DIGIT NINE

[❿] U+277F ❿ DINGBAT NEGATIVE CIRCLED NUMBER TEN

[➀] U+2780 ➀ DINGBAT CIRCLED SANS-SERIF DIGIT ONE

[➁] U+2781 ➁ DINGBAT CIRCLED SANS-SERIF DIGIT TWO

[➂] U+2782 ➂ DINGBAT CIRCLED SANS-SERIF DIGIT THREE

[➃] U+2783 ➃ DINGBAT CIRCLED SANS-SERIF DIGIT FOUR

[➄] U+2784 ➄ DINGBAT CIRCLED SANS-SERIF DIGIT FIVE

[➅] U+2785 ➅ DINGBAT CIRCLED SANS-SERIF DIGIT SIX

[➆] U+2786 ➆ DINGBAT CIRCLED SANS-SERIF DIGIT SEVEN

[➇] U+2787 ➇ DINGBAT CIRCLED SANS-SERIF DIGIT EIGHT

[➈] U+2788 ➈ DINGBAT CIRCLED SANS-SERIF DIGIT NINE

[➉] U+2789 ➉ DINGBAT CIRCLED SANS-SERIF NUMBER TEN

[➊] U+278A ➊ DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT ONE

[➋] U+278B ➋ DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT TWO

[➌] U+278C ➌ DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT THREE

[➍] U+278D ➍ DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT FOUR

[➎] U+278E ➎ DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT FIVE

[➏] U+278F ➏ DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT SIX

[➐] U+2790 ➐ DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT SEVEN

[➑] U+2791 ➑ DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT EIGHT

[➒] U+2792 ➒ DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT NINE

[➓] U+2793 ➓ DINGBAT NEGATIVE CIRCLED SANS-SERIF NUMBER TEN

[➔] U+2794 ➔ HEAVY WIDE-HEADED RIGHTWARDS ARROW

[➘] U+2798 ➘ HEAVY SOUTH EAST ARROW

[➙] U+2799 ➙ HEAVY RIGHTWARDS ARROW

[➚] U+279A ➚ HEAVY NORTH EAST ARROW

[➛] U+279B ➛ DRAFTING POINT RIGHTWARDS ARROW

[➜] U+279C ➜ HEAVY ROUND-TIPPED RIGHTWARDS ARROW

[➝] U+279D ➝ TRIANGLE-HEADED RIGHTWARDS ARROW

[➞] U+279E ➞ HEAVY TRIANGLE-HEADED RIGHTWARDS ARROW

[➟] U+279F ➟ DASHED TRIANGLE-HEADED RIGHTWARDS ARROW

[➠] U+27A0 ➠ HEAVY DASHED TRIANGLE-HEADED RIGHTWARDS ARROW

[➡] U+27A1 ➡ BLACK RIGHTWARDS ARROW

[➢] U+27A2 ➢ THREE-D TOP-LIGHTED RIGHTWARDS ARROWHEAD

[➣] U+27A3 ➣ THREE-D BOTTOM-LIGHTED RIGHTWARDS ARROWHEAD

[➤] U+27A4 ➤ BLACK RIGHTWARDS ARROWHEAD

[➥] U+27A5 ➥ HEAVY BLACK CURVED DOWNWARDS AND RIGHTWARDS ARROW

[➦] U+27A6 ➦ HEAVY BLACK CURVED UPWARDS AND RIGHTWARDS ARROW

[➧] U+27A7 ➧ SQUAT BLACK RIGHTWARDS ARROW

[➨] U+27A8 ➨ HEAVY CONCAVE-POINTED BLACK RIGHTWARDS ARROW

[➩] U+27A9 ➩ RIGHT-SHADED WHITE RIGHTWARDS ARROW

[➪] U+27AA ➪ LEFT-SHADED WHITE RIGHTWARDS ARROW

[➫] U+27AB ➫ BACK-TILTED SHADOWED WHITE RIGHTWARDS ARROW

[➬] U+27AC ➬ FRONT-TILTED SHADOWED WHITE RIGHTWARDS ARROW

[➭] U+27AD ➭ HEAVY LOWER RIGHT-SHADOWED WHITE RIGHTWARDS ARROW

[➮] U+27AE ➮ HEAVY UPPER RIGHT-SHADOWED WHITE RIGHTWARDS ARROW

[➯] U+27AF ➯ NOTCHED LOWER RIGHT-SHADOWED WHITE RIGHTWARDS ARROW

[➰] U+27B0 ➰ (unknown)

[➱] U+27B1 ➱ NOTCHED UPPER RIGHT-SHADOWED WHITE RIGHTWARDS ARROW

[➲] U+27B2 ➲ CIRCLED HEAVY WHITE RIGHTWARDS ARROW

[➳] U+27B3 ➳ WHITE-FEATHERED RIGHTWARDS ARROW

[➴] U+27B4 ➴ BLACK-FEATHERED SOUTH EAST ARROW

[➵] U+27B5 ➵ BLACK-FEATHERED RIGHTWARDS ARROW

[➶] U+27B6 ➶ BLACK-FEATHERED NORTH EAST ARROW

[➷] U+27B7 ➷ HEAVY BLACK-FEATHERED SOUTH EAST ARROW

[➸] U+27B8 ➸ HEAVY BLACK-FEATHERED RIGHTWARDS ARROW

[➹] U+27B9 ➹ HEAVY BLACK-FEATHERED NORTH EAST ARROW

[➺] U+27BA ➺ TEARDROP-BARBED RIGHTWARDS ARROW

[➻] U+27BB ➻ HEAVY TEARDROP-SHANKED RIGHTWARDS ARROW

[➼] U+27BC ➼ WEDGE-TAILED RIGHTWARDS ARROW

[➽] U+27BD ➽ HEAVY WEDGE-TAILED RIGHTWARDS ARROW

[➾] U+27BE ➾ OPEN-OUTLINED RIGHTWARDS ARROW

[⦁] U+2981 ⦁ Z NOTATION SPOT

[⦾] U+29BE ⦾ CIRCLED WHITE BULLET

[⦿] U+29BF ⦿ CIRCLED BULLET

[⧈] U+29C8 ⧈ SQUARED SQUARE

[⬅] U+2B05 ⬅ LEFTWARDS BLACK ARROW

[⬆] U+2B06 ⬆ UPWARDS BLACK ARROW

[⬇] U+2B07 ⬇ DOWNWARDS BLACK ARROW

Retrieved from 'https://wiki.secondlife.com/w/index.php?title=Unicode_cheat_sheet&oldid=698762'
The tables below are a reference to basic regex. While reading the rest of the site, when in doubt, you can always come back and look here. (It you want a bookmark, here's a direct link to the regex reference tables). I encourage you to print the tables so you have a cheat sheet on your desk for quick reference.
The tables are not exhaustive, for two reasons. First, every regex flavor is different, and I didn't want to crowd the page with overly exotic syntax. For a full reference to the particular regex flavors you'll be using, it's always best to go straight to the source. In fact, for some regex engines (such as Perl, PCRE, Java and .NET) you may want to check once a year, as their creators often introduce new features.
The other reason the tables are not exhaustive is that I wanted them to serve as a quick introduction to regex. If you are a complete beginner, you should get a firm grasp of basic regex syntax just by reading the examples in the tables. I tried to introduce features in a logical order and to keep out oddities that I've never seen in actual use, such as the 'bell character'. With these tables as a jumping board, you will be able to advance to mastery by exploring the other pages on the site.

How to use the tables

Pdf The tables are meant to serve as an accelerated regex course, and they are meant to be read slowly, one line at a time. On each line, in the leftmost column, you will find a new element of regex syntax. The next column, 'Legend', explains what the element means (or encodes) in the regex syntax. The next two columns work hand in hand: the 'Example' column gives a valid regular expression that uses the element, and the 'Sample Match' column presents a text string that could be matched by the regular expression.
You can read the tables online, of course, but if you suffer from even the mildest case of online-ADD (attention deficit disorder), like most of us… Well then, I highly recommend you print them out. You'll be able to study them slowly, and to use them as a cheat sheet later, when you are reading the rest of the site or experimenting with your own regular expressions.
Enjoy!
If you overdose, make sure not to miss the next page, which comes back down to Earth and talks about some really cool stuff: The 1001 ways to use Regex.

Regex Accelerated Course and Cheat Sheet

For easy navigation, here are some jumping points to various sections of the page:
✽ Characters
✽ Quantifiers
✽ More Characters
✽ Logic
✽ More White-Space
✽ More Quantifiers
✽ Character Classes
✽ Anchors and Boundaries
✽ POSIX Classes
✽ Inline Modifiers
✽ Lookarounds
✽ Character Class Operations
✽ Other Syntax
(direct link)

Characters

CharacterLegendExampleSample Match
dMost engines: one digit
from 0 to 9
file_ddfile_25
d.NET, Python 3: one Unicode digit in any scriptfile_ddfile_9੩
wMost engines: 'word character': ASCII letter, digit or underscorew-wwwA-b_1
w.Python 3: 'word character': Unicode letter, ideogram, digit, or underscorew-www字-ま_۳
w.NET: 'word character': Unicode letter, ideogram, digit, or connectorw-www字-ま‿۳
sMost engines: 'whitespace character': space, tab, newline, carriage return, vertical tabasbsca b
c
s.NET, Python 3, JavaScript: 'whitespace character': any Unicode separatorasbsca b
c
DOne character that is not a digit as defined by your engine's dDDDABC
WOne character that is not a word character as defined by your engine's wWWWWW*-+=)
SOne character that is not a whitespace character as defined by your engine's sSSSSYoyo

(direct link)

Quantifiers

QuantifierLegendExampleSample Match
+One or moreVersion w-w+Version A-b1_1
{3}Exactly three timesD{3}ABC
{2,4}Two to four timesd{2,4}156
{3,}Three or more timesw{3,}regex_tutorial
*Zero or more timesA*B*C*AAACC
?Once or noneplurals?plural

(direct link)

More Characters

CharacterLegendExampleSample Match
.Any character except line breaka.cabc
.Any character except line break.*whatever, man.
.A period (special character: needs to be escaped by a )a.ca.c
Escapes a special character.*+? $^/.*+? $^/
Escapes a special character[{()}][{()}]

(direct link)

Logic

LogicLegendExampleSample Match
Alternation / OR operand22 3333
( … )Capturing groupA(nt pple)Apple (captures 'pple')
1Contents of Group 1r(w)g1xregex
2Contents of Group 2(dd)+(dd)=2+112+65=65+12
(?: … )Non-capturing groupA(?:nt pple)Apple

(direct link)

More White-Space

CharacterLegendExampleSample Match
tTabTtw{2}T ab
rCarriage return charactersee below
nLine feed charactersee below
rnLine separator on WindowsABrnCDAB
CD
NPerl, PCRE (C, PHP, R…): one character that is not a line breakN+ABC
hPerl, PCRE (C, PHP, R…), Java: one horizontal whitespace character: tab or Unicode space separator
HOne character that is not a horizontal whitespace
v.NET, JavaScript, Python, Ruby: vertical tab
vPerl, PCRE (C, PHP, R…), Java: one vertical whitespace character: line feed, carriage return, vertical tab, form feed, paragraph or line separator
VPerl, PCRE (C, PHP, R…), Java: any character that is not a vertical whitespace
RPerl, PCRE (C, PHP, R…), Java: one line break (carriage return + line feed pair, and all the characters matched by v)

(direct link)

More Quantifiers

QuantifierLegendExampleSample Match
+The + (one or more) is 'greedy'd+12345
?Makes quantifiers 'lazy'd+?1 in 12345
*The * (zero or more) is 'greedy'A*AAA
?Makes quantifiers 'lazy'A*?empty in AAA
{2,4}Two to four times, 'greedy'w{2,4}abcd
?Makes quantifiers 'lazy'w{2,4}?ab in abcd

(direct link)

Character Classes

CharacterLegendExampleSample Match
[ … ]One of the characters in the brackets[AEIOU]One uppercase vowel
[ … ]One of the characters in the bracketsT[ao]pTap or Top
-Range indicator[a-z]One lowercase letter
[x-y]One of the characters in the range from x to y[A-Z]+GREAT
[ … ]One of the characters in the brackets[AB1-5w-z]One of either: A,B,1,2,3,4,5,w,x,y,z
[x-y]One of the characters in the range from x to y[ -~]+Characters in the printable section of the ASCII table.
[^x]One character that is not x[^a-z]{3}A1!
[^x-y]One of the characters not in the range from x to y[^ -~]+Characters that are not in the printable section of the ASCII table.
[dD]One character that is a digit or a non-digit[dD]+Any characters, inc-
luding new lines, which the regular dot doesn't match
[x41]Matches the character at hexadecimal position 41 in the ASCII table, i.e. A[x41-x45]{3}ABE

(direct link)

Anchors and Boundaries

AnchorLegendExampleSample Match
^Start of string or start of line depending on multiline mode. (But when [^inside brackets], it means 'not')^abc .*abc (line start)
$End of string or end of line depending on multiline mode. Many engine-dependent subtleties..*? the end$this is the end
ABeginning of string
(all major engines except JS)
Aabc[dD]*abc (string..
..start)
zVery end of the string
Not available in Python and JS
the endzthis is..n..the end
ZEnd of string or (except Python) before final line break
Not available in JS
the endZthis is..n..the endn
GBeginning of String or End of Previous Match
.NET, Java, PCRE (C, PHP, R…), Perl, Ruby
bWord boundary
Most engines: position where one side only is an ASCII letter, digit or underscore
Bob.*bcatbBob ate the cat
bWord boundary
.NET, Java, Python 3, Ruby: position where one side only is a Unicode letter, digit or underscore
Bob.*bкошкаbBob ate the кошка
BNot a word boundaryc.*BcatB.*copycats

(direct link)

POSIX Classes

CharacterLegendExampleSample Match
[:alpha:]PCRE (C, PHP, R…): ASCII letters A-Z and a-z[8[:alpha:]]+WellDone88
[:alpha:]Ruby 2: Unicode letter or ideogram[[:alpha:]d]+кошка99
[:alnum:]PCRE (C, PHP, R…): ASCII digits and letters A-Z and a-z[[:alnum:]]{10}ABCDE12345
[:alnum:]Ruby 2: Unicode digit, letter or ideogram[[:alnum:]]{10}кошка90210
[:punct:]PCRE (C, PHP, R…): ASCII punctuation mark[[:punct:]]+?!.,:;
[:punct:]Ruby: Unicode punctuation mark[[:punct:]]+‽,:〽⁆

(direct link)

Inline Modifiers

None of these are supported in JavaScript. In Ruby, beware of (?s) and (?m).
ModifierLegendExampleSample Match
(?i)Case-insensitive mode
(except JavaScript)
(?i)MondaymonDAY
(?s)DOTALL mode (except JS and Ruby). The dot (.) matches new line characters (rn). Also known as 'single-line mode' because the dot treats the entire input as a single line(?s)From A.*to ZFrom A
to Z
(?m)Multiline mode
(except Ruby and JS) ^ and $ match at the beginning and end of every line
(?m)1rn^2$rn^3$1
2
3
(?m)In Ruby: the same as (?s) in other engines, i.e. DOTALL mode, i.e. dot matches line breaks(?m)From A.*to ZFrom A
to Z
(?x)Free-Spacing Mode mode
(except JavaScript). Also known as comment mode or whitespace mode
(?x) # this is a
# comment
abc # write on multiple
# lines
[ ]d # spaces must be
# in brackets
abc d
(?n).NET, PCRE 10.30+: named capture onlyTurns all (parentheses) into non-capture groups. To capture, use named groups.
(?d)Java: Unix linebreaks onlyThe dot and the ^ and $ anchors are only affected by n
(?^)PCRE 10.32+: unset modifiersUnsets ismnx modifiers

(direct link)

Lookarounds

LookaroundLegendExampleSample Match
(?=…)Positive lookahead(?=d{10})d{5}01234 in 0123456789
(?<=…)Positive lookbehind(?<=d)catcat in 1cat
(?!…)Negative lookahead(?!theatre)thew+theme
(?<!…)Negative lookbehindw{3}(?<!mon)sterMunster

(direct link)

Character Class Operations

Class OperationLegendExampleSample Match
[…-[…]].NET: character class subtraction. One character that is in those on the left, but not in the subtracted class.[a-z-[aeiou]]Any lowercase consonant
[…-[…]].NET: character class subtraction.[p{IsArabic}-[D]]An Arabic character that is not a non-digit, i.e., an Arabic digit
[…&&[…]]Java, Ruby 2+: character class intersection. One character that is both in those on the left and in the && class.[S&&[D]]An non-whitespace character that is a non-digit.
[…&&[…]]Java, Ruby 2+: character class intersection.[S&&[D]&&[^a-zA-Z]]An non-whitespace character that a non-digit and not a letter.
[…&&[^…]]Java, Ruby 2+: character class subtraction is obtained by intersecting a class with a negated class[a-z&&[^aeiou]]An English lowercase letter that is not a vowel.
[…&&[^…]]Java, Ruby 2+: character class subtraction[p{InArabic}&&[^p{L}p{N}]]An Arabic character that is not a letter or a number

(direct link)

Other Syntax

SyntaxLegendExampleSample Match
KKeep Out
Perl, PCRE (C, PHP, R…), Python's alternate regex engine, Ruby 2+: drop everything that was matched so far from the overall match to be returned
prefixKd+12
Q…EPerl, PCRE (C, PHP, R…), Java: treat anything between the delimiters as a literal string. Useful to escape metacharacters.Q(C++ ?)E(C++ ?)

Don't Miss The Regex Style Guide
and The Best Regex Trick Ever!!!

The 1001 ways to use Regex

1-10 of 17 Threads
Subject: Very thoughtful and useful cheat sheet

Unlike lots of other cheat sheets or regex web sites, I was able (without much persistent regex knowledge) to apply the rules and to solve my problem. THANK YOU :)
Subject: Thanks a lot

Thanks a lot for the quick guide. It's really helpful.
Subject: Very useful site

Thank you soooooo much for this site. I'm using python regex for natural language processing in sentiment analysis and this helped me a lot.
Subject: Thank you! Excellent resource for any student

Thank you so much for this incredible cheatsheet! It is facilitating a lot my regex learning! God bless you and your passion!
Subject: Thank you for doing such a geat work.

I am now learning regex and for finding such a well organized site is a blessing! You are a good soul! Thank you for everything and stay inspired!
Subject: Simple = perfect

Subject: Congratulations

Well done, very useful page. Thank you for your effort. T
Subject: Thank you very much

Hi Rex,
Thankyou very much for compiling these. I am new to text analytics and is struggling a lot with regex. This is helping me a lot pick up. Great work
Subject: Nice summary

Nice summary of regex. I was trying to remember how to group and I found the example above. Thanks.
Subject: Best Regex site ever

Font Awesome Unicode Cheat Sheet

This is the best regex site ever on the internet. Regular Expressions are like any other language, they require time and effort to learn. RexEgg makes it an easy journey. Great work Author. Kudos to you.