I have a UI Element which has a lot of text(a couch doc to be specific).
Following is an extract of text that it has:
{
“CURRENT_VERSION”: “3.0”,
“_id”: “995ab0796246fe120aba5183ff377e54”,
“_rev”: “5-e6ee0d4afd2f8857847e2cc44df208cf”,
“analytics_enabled”: true,
“announcements_seen”: ,
“assigned_location_ids”: ,
“attempt_date”: null,
“atypical_user”: false,
“base_doc”: “CouchUser”,
“created_on”: “2018-10-23T12:09:30.363371Z”,
“date_joined”: “2018-10-23T12:09:30.131028Z”,
::
::
}
What I want is extract only the value of date_joined, ie, “2018-10-23T12:09:30.131028Z”
But somehow am not able to get it.
I have tried Screen Scraping/get text but I get complete text of the UI element instead of only the desired date value.
Following data extraction is also not helping me:
It is not exactly a plain string.
The whole text is embedded in a UI Element and when I try to ‘copy’ it, the whole string gets copied instead of just the date value.
Hey @indra !
Am already using the following regex “(?<=” + labelBefore + ")(.?)(?=" + labelAfter + “)” which I believe is same as the one regex101.com is providing (?<=“date_joined”:).(?=,)