This is a string of text. It will be the string we use for our examples.
This is the start of a line. This is NOT.
This NOT is not at the end of a line
That string ends here.
-----
Characters that are special will be colored like so
Matches will normally be colored like this
Escaped Characters will be colored like this
-----
RegEXP:
^This
Matches:
This is a string of text. It will be the string we use for our examples.
This is the start of a line. This is NOT.
This NOT is not at the end of a line
That string ends here.
Because:
The ^ character means "Start of a line".
This means that only the This at the start of a line matches
-----
RegEXP:
NOT\.$
Matches:
This is a string of text. It will be the string we use for our examples.
This is the start of a line. This is NOT.
This NOT is not at the end of a line
That string ends here.
Because:
The $ character means "End of line".
Normally . means "Any character", but...
We used \ to escape it, meaning we literally want a "."
What if we literally want a \ ?
Just do "\\"
-----
RegEXP:
Th(is|at)
Matches:
This is a string of text. It will be the string we use for our examples.
This is the start of a line. This is NOT.
This NOT is not at the end of a line
That string ends here.
Because:
Things are grouped together by ()!
So the above means This and/or
That are matches!
Note that | is only special inside something like () and means "Or"
BBCode | Result |
[b]Bold Text[/b] | Bold Text |
[i]Italic Text[/i] | Italic Text |
[u]Underlined Text[/u] | Underlined Text |
[s]Struckthrough Text[/s] | |
This is [sup]Superscript[/sup] | This is Superscript |
This is [sub]Subscript[/sup] | This is Subscript |
This is a [url=http://example.com]Named Link[/url] | This is a Named Link |
This is a regular link: [url]http://example.com[/url] | This is a regular link: http://example.com |
This text is [color=orange]Colored[/color] | This text is Colored |
[code]This is a codeblock[/code] | This is a codeblock |
[char=Character Name]Character Link[/char] | *Special. Will attempt to pull up character's page when clicked. |
[char]Character Name[/char] | *Special. Will attempt to pull up character's page when clicked. |
[quote=Author says]Authored Quote[/quote] | Author says Authored Quote |
[quote]Unauthored Quote[/quote] | Unauthored Quote |
[prisma]Prismatic/Rainbow Text[/prisma] | Prismatic/Rainbow Text |
[spoiler]Spoiered Text[/spoiler] | Spoilered Text |
[highlight=yellow]Highlighted Text[/highlight] | Highlighted Text |