Yeah, you may be right. I just always feel like reg exps is a good choice when it comes to parsing strings. But in this case it may be simple to solve this task like you described. I think it's worth trying something out and see if it's simpler and less error-prone.
Yeah, you may be right. I just always feel like reg exps is a good choice when it comes to parsing strings. But in this case it may be simple to solve this task like you described. I think it's worth trying something out and see if it's simpler and less error-prone.