Enhance - number translation (#2780)

couple of new profiles based on feedback
This commit is contained in:
Mafoo
2017-08-14 21:57:50 +01:00
committed by FusionPBX
parent 5b69862bcc
commit d968a8b6a3
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
<profile name="strip_nondigits" description="Remove anything that is not [0-9a-fA-F#*]">
<rule regex="^[^0-9a-fA-F#*]*([0-9a-fA-F#*]+)[^0-9a-fA-F#*]*([0-9a-fA-F#*]*)[^0-9a-fA-F#*]*([0-9a-fA-F#*]*)[^0-9a-fA-F#*]*([0-9a-fA-F#*]*)[^0-9a-fA-F#*]*([0-9a-fA-F#*]*)[^0-9a-fA-F#*]*([0-9a-fA-F#*]*)[^0-9a-fA-F#*]*([0-9a-fA-F#*]*)[^0-9a-fA-F#*]*([0-9a-fA-F#*]*)[^0-9a-fA-F#*]*([0-9a-fA-F#*]*)[^0-9a-fA-F#*]*$" replace="$1$2$3$4$5$6$7$8$9"/>
<rule regex="^(.*)$" replace="$1"/>
</profile>

View File

@@ -0,0 +1,4 @@
<profile name="strip_symbols" description="Remove anything that is [^ (){}_-]">
<rule regex="^[ (){}_-]*([^ (){}_-]+)[ (){}_-]*([^ (){}_-]*)[ (){}_-]*([^ (){}_-]*)[ (){}_-]*([^ (){}_-]*)[ (){}_-]*([^ (){}_-]*)[ (){}_-]*([^ (){}_-]*)[ (){}_-]*([^ (){}_-]*)[ (){}_-]*([^ (){}_-]*)[ (){}_-]*([^ (){}_-]*)[ (){}_-]*$" replace="$1$2$3$4$5$6$7$8$9"/>
<rule regex="^(.*)$" replace="$1"/>
</profile>