I know how I can get a substring from a string using index, but I want a substring starting from a substring, and with limited length.
For example. I have the string:
7F4P_gmLYIQottr9LMsJ5_arena_word2_fdsfds_fdsfds_fgdgdfs
I want to get a substring starting from the word arena
, but no more than 40 characters. The result should be:
arena_word2_fdsfds_fdsfd
The underscores, "_", are in a way random generated, so I can't just split after the second underscore.