How do I remove trailing and leading whitespace in a prepare recipe?

Noah
Noah Registered Posts: 43 ✭✭✭✭

I want to turn ' AAAA 123 BBB CCCCC ' into 'AAAA 123 BBB CCCCC'

I tried find and replace with this:

(\s\s+)

but it turns it to 'AAAA123BBBCCCCC'

Best Answer

  • Turribeach
    Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,024 Neuron
    Answer ✓

    In a Prepare recipe the output column name can be the same as the column you are modifying (see sample below). Once you have step done on one column you can click on the three dots and select Duplicate step. Once you have 4/5 steps you can select them and click on the Actions menu to Copy/Paste them all at once. Then modify the steps directly on the Script section. Finally you can select them all and group them in theAcitons menu to make your Prepare recipe more manageable.

Answers

Setup Info
    Tags
      Help me…