Help Shape the Future of Dataiku: Join our User Research Program READ MORE

Removing initial characters from string

fromo
Level 1
Removing initial characters from string

I am trying to use a prepare recipe to remove the first x characters from a string and keep the remaining characters.

0 Kudos
3 Replies
Ignacio_Toledo

Hi @fromo. This should do the trick:

2020-11-22_20-49.png

 In that example I'm removing 3 characters, you can change the 3 with whatever value you might want to use.

Cheers!

0 Kudos
yethin
Level 1

Could you help me with a similar formula for removing end characters from string

0 Kudos
Mattsco
Dataiker
Dataiker

Hi Yethin, 

In the find and replace processor you can use the regex: .{3}$ to remove the last 3 characters.

Mattsco
Labels (1)
A banner prompting to get Dataiku DSS