How can I remove line breaks from a string column in an ETL?
I have a dataset that includes line breaks in some cells.
I was trying to use the "Replace Text" action, but I'm not sure how Domo is coding the breaks. '\n' and '<br>' did not work.
In Domo, you can't visually see the line breaks, but as soon as I download the CSV and open in Excel, I can see them (screen shot attached).
Any guidance on this would be greatly appreciated. Thank you!
Domo:
Excel:
Tagged:
0
Best Answer
-
You can use a formula tile and the regexp_replace function:
REGEXP_REPLACE(`field`, '[\n\r]', '')
[\n\r] - This is a selection of either types of newline characters (\n for mac/unix and \r\n for windows)
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0
Answers
-
You can use a formula tile and the regexp_replace function:
REGEXP_REPLACE(`field`, '[\n\r]', '')
[\n\r] - This is a selection of either types of newline characters (\n for mac/unix and \r\n for windows)
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0
Categories
- All Categories
- 1.1K Product Ideas
- 1.1K Ideas Exchange
- 1.2K Connect
- 970 Connectors
- 259 Workbench
- Cloud Amplifier
- 1 Federated
- 2.4K Transform
- 76 SQL DataFlows
- 502 Datasets
- 1.8K Magic ETL
- 2.7K Visualize
- 2.2K Charting
- 379 Beast Mode
- 21 Variables
- 487 Automate
- 104 Apps
- 379 APIs & Domo Developer
- 6 Workflows
- 22 Predict
- 6 Jupyter Workspaces
- 16 R & Python Tiles
- 319 Distribute
- 67 Domo Everywhere
- 252 Scheduled Reports
- 59 Manage
- 59 Governance & Security
- 1 Product Release Questions
- 5K Community Forums
- 37 Getting Started
- 23 Community Member Introductions
- 64 Community Announcements
- 4.8K Archive