How to extract value form json using Regex [closed] - regex

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
How to extract token values from below code response using RegEx:
{"status":"Success","message":"Successful logged in!","data":{"email":"some#gmail.com","full_name":"full name","token":"some token","someotherparam":"something"}}

You can use this regex as shown in the example
(?<=("|')token("|'):("|'))(.*?)(?=("|'))
But I would recommend using some function like json_decode() and retrieve the array.

Related

Simple regex to match "word" or "word/" [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 days ago.
Improve this question
I have been trying with ^(word?(\/))$ but no success
There is no need to consider quotation marks
You should try:
^word\/?$
See this demo

Extracting a word between two parenthesis regex [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I am trying to extract word General using Pyspark regex from the following string:
:52.089;emailI_Pm|T(General)|20000;ml2736
How can I do it?
Thanks
re.match(r".*\((.*)\).*", ":52.089;emailI_Pm|T(General)|20000;ml2736")[1]

regular expression that will find: F.01, F1.01, F9.99, F10.01, [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I need a regular expression that will find:
F.01,
F1.01,
F9.99,
F10.01,
And any decimal to the second place in between.
You can use this pattern
F\d+\.\d\d$
for most of the platforms it should work

Regex expression to replace string with * [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I need to convert string like this to
ABC_464_aDE.hmi_2df
to ABC464aDE.* that is want to remove all _ and add * at the end after dot. And my project requirement is to do this using regex. Please help to sort this out.
Thanks
If you are using C# the you can use this code
txt=Regex.Replace(txt.Replace("_",""), #"\.\w+", "");

Regex to capture a number from an URL [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
can someone please show me to how to capture the number (23456) in this URL using Regex.
http://www.examplweb.com/data/23456/my-test-45-check-out.aspx
\b\d+(?=\/[^\/]*$)
Try this.See demo.
https://regex101.com/r/eS7gD7/26