Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Trim the Field

JC_dup_130
5 - Atom

I have  to trim this data :[{"lat":"44.88383725", "lon":"-93.28145902"}] and have values in two separate columns.I used Parse and multifield formula too but no use.Could you help me with suitable Reg exp or any other way to get only values.

 

Thank you

3 REPLIES 3
MarqueeCrew
20 - Arcturus
20 - Arcturus

@JC_dup_130,

 

Use the RegEx tool.  Set the Output Method to Parse.

(\d+\.\d+).*?([-]*\d+\.\d+)

Capture.PNG

 

That should do the trick.

 

  • Output 1:
    • 1 or more digits
      • followed by
    • A decimal place
      • followed by
    • 1 or more digits
  • Junk
    • Anything
  • Output 2:
    • 0 or more negative signs
      • followed by
    • 1 or more digits
      • followed by
    • A decimal place
      • followed by
    • 1 or more digits

Cheers,

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
JC_dup_130
5 - Atom

 

 

Thanks a lot.It really did the trick.I take a bow.

 

MarqueeCrew
20 - Arcturus
20 - Arcturus
You can adjust the data types.

Bowing 🙇 back.
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels