0

Processing files with strings in quotes after colon.

Problem:

User would like to process the following piece of content (just an example) extracting only the strings in the quotes (quotes excluded) which are after colon. 

{"country": "country",

"countries": "countries",

"select_destination_to_continue": "Select destination to continue",}

Solution:

Copy the content to notepad and save changing the file type to a .js file.
Then in the Settings >> Document Formats >> Code files


Make sure that the option "Content is html" is ticked" and add this regex 

(?<pattern1>\n".+?"\s*:) 

in "Include or exclude additional content" as screenshot below: 

0 comments

Please sign in to leave a comment.