Split string in jquery
Another method to get this would be to use a simple regex. The regex uses capturing groups to group the data like you want. In my example, the capturing groups are the items surrounded by parentheses. The regex is just grabbing the matching group 1 on everything before the last period, which corresponds to the … Read more