<p>Refactored the code to properly export to KEMI interface, allow variables in some of the parameters, so the values can be dynamic. The function was named regex_substring() and the order of the parameters was changed to follow the pattern: input value, match expression (regex, match index, max match count) and the output.</p>
<p>I haven't tested, hopefully you can do it and report if works as expected. If any issues, then open a bug report. Thanks!</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/1733#issuecomment-443142894">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZdKa4sUNkncLLVC4CdIqcbwm-lBgks5u0PkfgaJpZM4YrA2U">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZTKAy48oSdzSFddYkqDIW8jhivzUks5u0PkfgaJpZM4YrA2U.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@miconda in #1733: Refactored the code to properly export to KEMI interface, allow variables in some of the parameters, so the values can be dynamic. The function was named regex_substring() and the order of the parameters was changed to follow the pattern: input value, match expression (regex, match index, max match count) and the output.\r\n\r\nI haven't tested, hopefully you can do it and report if works as expected. If any issues, then open a bug report. Thanks!"}],"action":{"name":"View Pull Request","url":"https://github.com/kamailio/kamailio/pull/1733#issuecomment-443142894"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/1733#issuecomment-443142894",
"url": "https://github.com/kamailio/kamailio/pull/1733#issuecomment-443142894",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [kamailio/kamailio] textops : added a new function for getting substring with regular expression (#1733)",
"sections": [
{
"text": "",
"activityTitle": "**Daniel-Constantin Mierla**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@miconda",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1733,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/kamailio/kamailio/pull/1733#issuecomment-443142894"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 413928852\n}"
}
],
"themeColor": "26292E"
}
]</script>