Difference between revisions of "%sscan"
From Zenitel Wiki
(6 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{AI}} | ||
[[Event_Handler]] macro - Extract substring by text scan | [[Event_Handler]] macro - Extract substring by text scan | ||
Format: '''%sscan(string, search-string)''' | Format: '''%sscan(string, search-string)''' | ||
− | *Scan for ''search-string'', extract rest of ''string'' | + | *Scan for ''search-string'', extract rest of ''string'' including first match |
*Returns empty string if ''search-string'' not found | *Returns empty string if ''search-string'' not found | ||
*Useful for parsing [[External_Data_Input]]. | *Useful for parsing [[External_Data_Input]]. | ||
− | Example: | + | Example: %sscan(ABCDEFGHI,DEF) will return DEFGHI |
− | |||
− | |||
− | |||
Line 16: | Line 14: | ||
[[Category:Event Handler]] | [[Category:Event Handler]] | ||
+ | [[Category:Event Handler macros]] |
Latest revision as of 14:32, 20 September 2023
Event_Handler macro - Extract substring by text scan
Format: %sscan(string, search-string)
- Scan for search-string, extract rest of string including first match
- Returns empty string if search-string not found
- Useful for parsing External_Data_Input.
Example: %sscan(ABCDEFGHI,DEF) will return DEFGHI
Back to Event_Handler#List_of_macros.