Year of the Dragon: Through April 23rd, claim the adventure pack Slice of Life for free! Speak to Xatheral in the Hall of Heroes.
Game mechanics • Newbie guide • In development • DDO Store • Social Media
Challenges • Classes • Collectables • Crafting • Enhancements • Epic Destinies • Favor • Feats
Glossary • Items • Maps • Monsters • Places • Quests • Races • Reincarnation • Skills • Spells
Please create an account or log in to build a reputation and unlock more editing privileges, and then visit DDO wiki's IRC Chat/Discord if you need any help!
Template:Perl regexp encode
Usage[edit]
This template replaces special characters used in Perl regular expressions with their encoding. See https://perldoc.perl.org/perlre.html#Regular-Expressions
Characters replaced:
- [
- ]
- *
- ?
- {
- }
- +
- (
- )
- , (with the wildcard .)
Characters not replaced:
- |
- ¦
- &
Note that replacing all the characters one by one is expensive. Use only when necessary. (This could be less expensive with https://www.mediawiki.org/wiki/Extension:ReplaceSet )
CODE[edit]
\{hello\}\(there\).\[I\]\*