skip to Main Content

Javascript – Is it possible to have such a regex?

I have a string like this: 124:111,120:444,103:504,494:120,404:111,200:100, I will use replace() and let's say I want to select 124:111,120:444,103:504,494:120,404:111,**200:100,** without actually defining 200:100, but instead having it to work like this: Define only :100, regex selects everything to the left…

VIEW QUESTION

Can MySQL v5 extract multiple occurrences from strings?

Folks! I need some ideas, with the follow problem: I have a table in MySQL v5 that stores a string in a field, like the following: {"content":{"serviceResponse":{"state":{"code":"04","gloss":"CONTINUE"},"products":[{"product":{"productCode":"1" ,"subProductCode":"1"},"productAmount":{"amountGranted":1100000},"groupRisk":{"riskGroup":"A2"},"additionalinformation":{"franchiseTC":"3"," percentAdvance":"70.0"}},{"product":{"productCode":"2"},"groupRisk":{}},{"product":{"productCode":"7"}}]," client":{"newClient":"false","riskGroup":{"riskGroupCode":"A2"}}}} I need a MySQL v5 (version is important) SQL query…

VIEW QUESTION
Back To Top
Search