— 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