— Obviously replace one to 1, two to 2 and so on
Yes, but with what method? I mean if/else (which would be stupid) or regex or what's the best method to check this?
— What lang are you going for
— Assuming js since this is a js group lmao
— You could use regex, yes
— If you give me 10 minutes I could go on my laptop and make some regex and some pseudocode for you
— Regex is fine but if you want to scale I would use an algorithm to procedurally analyze the text
— IE break it apart into individual parts
— But in case of google I think they do this server side?!
— IE Not as in Internet Explorer lmao