How find substring between the two are the same, arbitrary tokens?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
16 views
I have a string like Something $Something token$toke
token can consist of any characters. Tokens are not known in advance.
Tell me, is it possible to find something between the two tokens using regexp, preferably one of the regular season?

To make it clearer:
of Hello $world token$token need to world
of Hello $foo $bar 123 $foo need to get $bar 123
etc.
by | 16 views

1 Answer

0 like 0 dislike
https://regex101.com/r/mZXjWx/1
"necessary" in group 2
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users