Posted: Fri Jun 17, 2016 1:57 pm
need more info...
Is it possible to have nested mixed punctuation like blah (other] blah [oops) or do they all match a simple pattern? Can they end with {[( ? or the like?
You should be able to make a single rule that says anything followed by one character in the list of {{( followed by (anything? a pattern? what makes sense here) and ends in one character from the list of ]})
That may not be sufficient for all cases or may even fail on some cases depending on the actual data patterns.
Then you need to replace {{( with [ and the same for ] maybe ?? or extract from there the portion you wanted?
The real catch is just whether the simple rule is sufficient for your data.
--- Some tasks may or may not make sense to do other ways. If I wanted the data in between two brackets, I would pull it out in a transformer.
Is it possible to have nested mixed punctuation like blah (other] blah [oops) or do they all match a simple pattern? Can they end with {[( ? or the like?
You should be able to make a single rule that says anything followed by one character in the list of {{( followed by (anything? a pattern? what makes sense here) and ends in one character from the list of ]})
That may not be sufficient for all cases or may even fail on some cases depending on the actual data patterns.
Then you need to replace {{( with [ and the same for ] maybe ?? or extract from there the portion you wanted?
The real catch is just whether the simple rule is sufficient for your data.
--- Some tasks may or may not make sense to do other ways. If I wanted the data in between two brackets, I would pull it out in a transformer.