I am trying to write a regular expression to split the following strings into segments.
#if [Customer.OrderQuantity] > 5 #then 1000 #if [Customer.OrderQuantity] < 5 #then 500 #else 100
1st Segment: #if [Customer.OrderQuantity] > 5 #then 1000
2nd Segment: #if [Customer.OrderQuantity] < 5 #then 500
3rd Segment: #else 100
Your suggestion is much appreciated!
This is producing the output you want
But I am guessing at some points, I have no idea if this is doing what you want for other cases.