D
D
Dmitry Bashinsky2018-02-21 09:15:14
Regular Expressions
Dmitry Bashinsky, 2018-02-21 09:15:14

How to get an array of Matches?

Hello.
There is this line:

dialogEvents=[CHAT_BOT, cliNotFound, slCP:Card.PayinSS:Card.Pay, AnnounceChatBot]

You need to get an array, but without using groups, so that at the output you get an array of Matches, where Value = to the array element. It is important that it be exactly regular, without additional functions.
CHAT_BOT
cliNotFound
slCP:Card.PayinSS:Card.Pay
AnnounceChatBot

how to proceed here?
Specify to search from dialogEvents=[ to ]
And now I want to say that it just searches for words between these values.
[\w.:]+this pattern finds all words, but I can't figure out how to limit it.
Made a start: (?<=\QdialogEvents=[\E)[\w.:]+how to make an end?
(?<=dialogEvents=\[).+(?=\])this pulls out the entire line, but I still can’t figure out how to separate them :(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick Sdk, 2018-02-21
@lidacriss

I understand that the regular season needs to be somehow explained from where and to where to look for it, and there, in theory, it’s just a template like: word + comma or without

just came to mind:
not an ideal regular season, but the right one should seem to be pulled out

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question