Please help get information in source
-
I have a source like this https://throwbin.io/SBZjRRS, I want to get parse: "nameLocalizationKey": "product.cleanup.CU_PRO" and "nameLocalizationKey": "avast.premium.security", I tried jtoken and regex but not yet successful
Thank.
-
REGEX
PARSE "<SOURCE>" REGEX "\[\\{\"id\":\"alpha.([a-z0-9]{32})\",\"nameLocalizationKey\":\"([a-zA-Z._]+)\",\"fulfillment\":" "[2]" -> VAR "2" PARSE "<SOURCE>" REGEX ",\\{\"id\":\"alpha.([a-z0-9]{32})\",\"nameLocalizationKey\":\"([a-zA-Z._]+)\",\"fulfillment\":" "[2]" -> VAR "3"
I'm learning regex haha. Hope can help you ^^
-
Have you already tried using
[*].nameLocalizationKey
as JToken (with the recursive checkbox enabled)?
-
@Ruri, I turned on the recursive checkbox, but the error
-
@thanhlouis said in Please help get information in source:
"[\{"id":"alpha.([a-z0-9]{32})","nameLocalizationKey":"([a-zA-Z._]+)","fulfillment":" "[2]"
Thank bro, It worked well with regex: alpha.([a-z0-9]{32})","nameLocalizationKey":"([^"]*)" - Output: [2]