Year of the Dragon: Through June 26th, claim free Ground Bound Green Dragon Mount! Speak to Xatheral in the Hall of Heroes.
(April's reward of a free expansion or Greater Elixir of Discovery can still be claimed from Trilliya until June 4th.) edit
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 remove ads, build a reputation, and unlock more editing privileges and then visit DDO wiki's IRC Chat/Discord if you need any help!
User:Faltout/SandBox/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:
- [
- ]
- *
- ?
- {
- }
- +
- (
- )
- ,
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\]\*