DANAconnect Super-Tag Library
This library is intended for non-programmers using DANAconnect and is a set of example tags combined with regular expressions that can be copied into content added to conversations and messages in the Conversation Manager to validate, extract, subtract and filter text from fields in the contact list.
See also: What are Regular Expressions and Super-Tags in DANAconnect?
Note to Programmer Users: How to form tags with regular expressions and/or substrings (Super-tags)?
See also: What are Regular Expressions and Super-Tags in DANAconnect?
Note to Programmer Users: How to form tags with regular expressions and/or substrings (Super-tags)?
Use | Full Text in Database | This is the Super-Tag | Text shown in Message |
---|---|---|---|
Extract Year from Date | 31/12/2022 | $s{date^(\d{4})$} | 2022 |
Extract First Word from Full Text | Maria Gomez | $s{name^(\S+\s*?){1}$} | Maria |
Extract Second Word from Full Text | Maria Gomez | $s{name^(\S+\s*?){2}$} | Gomez |
Extract First Letter of Second Word | Maria Gomez | $s{text^(\S+\s*?){2}$:1} | G |
Extract Last 4 Digits from Phone/Credit Card Number | 18556003262 | $s{phone:-4} | 3262 |
Extract First Letter from Text | FLORIDA | $s{text:1} | F |
Extract First Two Letters from Text | FLORIDA | $s{text:2} | FL |
Extract First Three Letters from Text | FLORIDA | $s{text:3} | FLO |
Extract Email from Longer Text | "This is the email: lab@si1.me" | $s{email^/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/$} | lab@si1.me |
Extract Username from Email Address (the part before @) | lab@si1.me | $s{text^((?:[a-z][a-z]+))$} | lab |
Extract Domain from URL or Email Address | http://si1.me/faq/ | $s{address^^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/\n]+)$} | si1.me |
Updated on: 05/02/2023
Thank you!