I am trying to take a text-based log file, like below:

> 
> type: 'click', category: 'REFRESH\_DOOR', desc: 'clicked refresh from
>  door 0124', site: 'mysite', pathname: '/load\_areas/all/doors', params:
>  '?sort\_by=code&layout=view\_by\_4', time: '1515838628166', mobile:
>  'false', bp: 'xlarge', size: '[1920, 935]', area: 'all', sid:
>  '15158225889', facility: 'MMMM', IP Address: 'XXX.XXX.XXX.XXX',
>  created: 'January 13, 2018 04:17'
> 
> 
> 

and traverse it to build a JSON object from it. When I `log.split(",")` on the entry above to make separate objects out of the parts of the string, it takes the date and splits it up, breaking the data.

What would be a RegEx that finds commas within single quotes, which I can replace before trying to split this string into a JS array?

I basically want to change: 'January 13, 2018 04:17' to 'January 13; 2018 04:17', and worry about the conversion later.

I tried expressions like:

```
'([^']*)'

```

Which takes everything between quotes, but I haven't been able to target just commas between quotes.