Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Regex Snippets"

From Roll20 Wiki

Jump to: navigation, search
(Created page with "{{revdate}} Roll20-related {{wiki|Regular_expression|Regex}} snippets, that could be useful in [[|Macro Guide|macro generation]], Character Sheet Development- and [[API De...")
 
m
Line 1: Line 1:
{{revdate}}
+
{{revdate}}{{stub}}
 
Roll20-related {{wiki|Regular_expression|Regex}} snippets, that could be useful in [[|Macro Guide|macro generation]], [[Character Sheet Development]]- and [[API Development]], along with creating external tools.
 
Roll20-related {{wiki|Regular_expression|Regex}} snippets, that could be useful in [[|Macro Guide|macro generation]], [[Character Sheet Development]]- and [[API Development]], along with creating external tools.
  

Revision as of 09:00, 5 June 2022


Roll20-related Regex Wikipedia-Black-W.png snippets, that could be useful in [[|Macro Guide|macro generation]], Character Sheet Development- and API Development, along with creating external tools.

Depending on where you use the snippets, you might need to escape

Contents

Snippets

  • /(\/roll|\/r|\/em|\/w|\/whisper|\/gmroll|\/gr|\/ooc|\/fx|\/desc|\/as|\/emas|\/talktomyself|(\!|\#)[a-z\\-]*)/g - target any of the q Text Chat commands, or any API command keywords (e.g.!token-mod) - source
  • /&(?:[a-z\d]+|#\d+|#x[a-f\d]+);/g target any HTML entity - [regexr.com/3eauj source]

TODO

  • snippets to detect character_id, token_id, RowID, attibutes
  • improve above examples

Use Examples

Related Pages

Links