I have a description field that is embedded within json and I'm unable to utilize json libraries to parse this data.
I use {0,23}
in order in attempt to extract first 23 characters of string, how to extract entire value associated with description ?
import re
description = "'\description\" : \"this is a tesdt \n another test\" "
re.findall(r'description(?:\w+){0,23}', description, re.IGNORECASE)
For above code just ['description']
is displayed
\w
imrediately afterdescription
so this is completely expected. Perhaps you are looking for.{0,23}
?import json
(but why??) using regex for this seems misdirected, especially if you are unfamiliar with regex.