logoalt Hacker News

cucumber3732842today at 11:02 AM0 repliesview on HN

It kind of depends on the substring and problem context.

Arbitrary substring in arbitrary text vs extracting embedded plant code from product serial numbers.

As long as you've got a good explanation for what you chose and why you chose it and the pro/con it's probably fine.