B
B
bqio2018-03-13 19:08:48
JavaScript
bqio, 2018-03-13 19:08:48

What regular expression to use?

There is a line: Ge4|$Wa$SvpSE_VOICE_PLAYER_M# _EVT_5
|$E通常|No, actually, I... It's strange...\nYour name, it just...came to me...$k
the next regular \|(.*?)\$k
But it takes the first |. How to make it last?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osher, 2018-03-13
@bqio

str.match(/([^|]+)\$k/s)[1]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question