AutoContacts Remove In Numbers - Advanced option setting

Discussion in 'AutoApps' started by Stupifier, Feb 12, 2016.

  1. Stupifier

    Stupifier Member

    Joined:
    Mar 10, 2015
    Messages:
    147
    Likes Received:
    6
    Could anyone give an explanation on how to use the "Remove In Numbers" option located in the Advanced section of an AutoContacts action.

    Basically, I have AutoContacts pulling information when I give it a contact name. Unfortunately, the Phone number extracted (%acnumber) is formatted using parenthesis, spaces, and dashes like (555) 521-5212. I would rather it be just a flat 10-digit number 5555215212. Thought the "Remove In Numbers" option would be my solution but I cannot get it to function properly.

    I would like both Parenthesis, spaces, and dashes removed from any %acnumber extracted using AutoContacts.

    As a workaround, I used a series of Search/Replace Tasker actions to accomplish this....but that is an extremely sloppy fix and I feel "Remove In Numbers" should be my answer.
     
  2. Stupifier

    Stupifier Member

    Joined:
    Mar 10, 2015
    Messages:
    147
    Likes Received:
    6
    I've tried a few different things (see below code) in this "Remove In Numbers" field. Figured using Regex to grab literal characters would help too....but no.

    Code (Text):
    \(/\)/-/%THISISASPACE
     
  3. easiuser

    easiuser Member

    Joined:
    Mar 7, 2015
    Messages:
    50
    Likes Received:
    4
    I agree "Remove in Numbers" should work but just one search and replace will do the trick.

    StripNumber (487)
    A1: Variable Set [ Name:%acnumber To:(123) 456-7890 Do Maths:Off Append:Off ]
    A2: Flash [ Text:Before %acnumber Long:Off ]
    A3: Variable Search Replace [ Variable:%acnumber Search:.*(\d\d\d).*(\d\d\d).*(\d\d\d\d) Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In: Replace Matches:On Replace With:$1$2$3 ]
    A4: Flash [ Text:After %acnumber Long:Off ]
     
    Stupifier likes this.
  4. Stupifier

    Stupifier Member

    Joined:
    Mar 10, 2015
    Messages:
    147
    Likes Received:
    6
    That is a bit more elegant than my Search & Replace actions.....but yes...I feel like "Remove In Numbers" is broken. Any confirm on this from the Dev?
     

Share This Page