1

I have a line like this: jsdata="l7Bhpb;_;CJWKh4 cECq7c;_;CJWKiA" data-ved="2ahUKEwjxq7L29Yr7AhWM7qQKHRABDVEQ2esEegQIGxAE">

I need to get the word CJWKiA. But I don't understand how to write it in the regex language.

My failed attempt: jsdata=\".+?;.+?\" This returns the entire string, including the word I need :(

I don't understand how to get only CJWKiA word, I need something pattern like this: jsdata=\"l7Bhpb;_;CJWKh4 cECq7c;_;(CJWKiA)\"

There may be different words, I only need to get the last one

0

1 Answer 1

1
/jsdata="[^"]*;([^;"]*)"/gm

You can't have double quotes in the attribute.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.