J
Jens Riedel
Hello,
I need to search a text for a specific pattern, then put all matches
into an array.
Usually I did this while going through the text line by line, but this
time there can be more than one match per line.
How can I achieve this most simple?
Example:
'This is Example_1 in a line in a long text with Example_2 in the
same line and Example_3 in the next one.'
Searching for /Example_\d/ should give me an array ("Example_1",
"Example_2", "Example_3")
Greetings,
Jens
I need to search a text for a specific pattern, then put all matches
into an array.
Usually I did this while going through the text line by line, but this
time there can be more than one match per line.
How can I achieve this most simple?
Example:
'This is Example_1 in a line in a long text with Example_2 in the
same line and Example_3 in the next one.'
Searching for /Example_\d/ should give me an array ("Example_1",
"Example_2", "Example_3")
Greetings,
Jens