I
I
Igor Ribes2017-12-15 22:57:05
Regular Expressions
Igor Ribes, 2017-12-15 22:57:05

How to make a regex to extract certain characters after a given word?

There is a given text: "a bunch of extra text PURSAFCN=*O_B*y*x *K*V*P2_8 a bunch of extra text".
How to extract such a set of "O_Buh KVR2_8" from this text, which begins after the word "PURSAFCN=" and ends with the character \x00?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Varlamov, 2018-03-26
@bes_internal

/CN=([A-Z a-z_\d]+)\x00/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question