Boomi Buzz: Blogs & Events
Boomi Training & Certification
About the Community
to create and rate content, and to follow, bookmark, and share content with other members.
I'm looking for a recommended method for stripping characters from phone numbers...
Question asked by
on Apr 12, 2012
on Jul 26, 2012 by Adam Arrowsmith
I tried the following Java Script, NewPhone = Phone.replace( /\D/g, '' ); but it is not working... Any suggestions?
No one else has this question
Mark as assumed answered
This content has been marked as final.
Show 1 comment
(Required, will not be published)
Jul 26, 2012 8:32 AM
I realize this is a bit dated but saw this and wanted to follow up. Were you able to sort this out yet?
Your syntax looks correct including the regex non-digit metacharacter ( \D). I ran a simple test and was able to get this replace to work in a map function.
I assume you're using it in a map function? By "not working" do you mean it's throwing an error or not outputting a value or outputting an incorrect value?
Retrieving data ...
Database Integration Guide
How to create a heartbeat process for Atom runtime monitoring
Operational Monitoring Best Practices for Atom, Molecule, and Atom Cloud Runtimes
can I query a cache or delete duplicates from a cache
Found more than 1 document in the document cache