I’ll preface this by saying I’m not sure if String Manipulation can do this, or if it’s a Rule Engine problem.
I have a string column $Time$ that’s in a “hh:mm:ss” format. There are instances of hh being 24, 25, or 26, which need to become 00, 01, and 02 respectively
I’m learning the rule engine/string manipulation nodes (and java generally), but have not yet figured out if/else syntax.
Basically I want to replace the column with something along the lines of:
String Manipulation node can’t do it as it doesn’t have multiple if logic (not sure there is other way like regex for example) and Rule Engine can’t do it as it doesn’t have join (and substr in a result) logic. But Column Expressions got both!
Check this topic for more info on Column Expressions or search forum for any other as there are plenty of them.
Try it out and if you have any problems feel free to ask