ubotkid 1 Posted November 3, 2018 Report Share Posted November 3, 2018 tagssongsdogparrotcategoryId: 25 ----------- i wana get text between tags and categoryId answer should be like this songsdogparrot any help appreciated Quote Link to post Share on other sites
bestmacros 60 Posted November 3, 2018 Report Share Posted November 3, 2018 .*\s.*\s.*\s(?=categoryId)or (.*\s){3}(?=categoryId) Quote Link to post Share on other sites
ubotkid 1 Posted November 3, 2018 Author Report Share Posted November 3, 2018 .*\s.*\s.*\s(?=categoryId)or (.*\s){3}(?=categoryId) thank you what if if i have more than 3 keywords just like this i am trying to get tags from here like this "channelTitle": "Marques Brownlee", "tags": [ "RED Hydrogen One", "RED Hydrogen", "RED Hydrogen One review", "RED Hydrogen Review", "RED smartphone", "MKBHD", "RED phone", "holographic phone", "holgraphic smartphone", "holographic machine", "holographic media machine", "RED camera", "RED phone camera", "RED phone vs", "RED Hydrogen vs", "4-view", "h4v", "holopix" ], "categoryId": "28", "liveBroadcastContent": "none", Quote Link to post Share on other sites
Romeo 13 Posted November 3, 2018 Report Share Posted November 3, 2018 Please let me know if the content you are trying to parse is in json or xml format ? if so then there is a precise way to parse data Quote Link to post Share on other sites
ubotkid 1 Posted November 3, 2018 Author Report Share Posted November 3, 2018 Please let me know if the content you are trying to parse is in json or xml format ? if so then there is a precise way to parse data its youtube api i am trying to get those tags from here example "channelTitle": "Marques Brownlee", "tags": [ "RED Hydrogen One", "RED Hydrogen", "RED Hydrogen One review", "RED Hydrogen Review", "RED smartphone", "MKBHD", "RED phone", "holographic phone", "holgraphic smartphone", "holographic machine", "holographic media machine", "RED camera", "RED phone camera", "RED phone vs", "RED Hydrogen vs", "4-view", "h4v", "holopix" ], "categoryId": "28", "liveBroadcastContent": "none", Quote Link to post Share on other sites
Solution bestmacros 60 Posted November 4, 2018 Solution Report Share Posted November 4, 2018 try this: (?<=\"tags\"\:\s\[\s)(.*\s)*(?=\]) its youtube api i am trying to get those tags from here example "channelTitle": "Marques Brownlee", "tags": [ "RED Hydrogen One", "RED Hydrogen", "RED Hydrogen One review", "RED Hydrogen Review", "RED smartphone", "MKBHD", "RED phone", "holographic phone", "holgraphic smartphone", "holographic machine", "holographic media machine", "RED camera", "RED phone camera", "RED phone vs", "RED Hydrogen vs", "4-view", "h4v", "holopix" ], "categoryId": "28", "liveBroadcastContent": "none", Quote Link to post Share on other sites
HelloInsomnia 1103 Posted November 4, 2018 Report Share Posted November 4, 2018 That looks like a JSON response, for that you can use this plugin: http://network.ubotstudio.com/forum/index.php/topic/16166-free-plugin-jsonpath-parser-plugin/ You could use regex for this but using a JSON parser to parse JSON makes more sense. Quote Link to post Share on other sites
Marani 80 Posted November 5, 2018 Report Share Posted November 5, 2018 That looks like a JSON response, for that you can use this plugin: http://network.ubotstudio.com/forum/index.php/topic/16166-free-plugin-jsonpath-parser-plugin/ You could use regex for this but using a JSON parser to parse JSON makes more sense. As it has parsing problems:http://network.ubotstudio.com/forum/index.php/topic/16166-free-plugin-jsonpath-parser-plugin/?p=131554 I use EXB plugin instead. Dan did a great job by adding two VERY useful functions to EXB for parsing JSON data. 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.