I cannot find an expression to evaluate part of a string.
I want to get something like this:
if (string[4:8]=='abc') {...}
I started writing like this:
if (string[4]=='a' && string[5]=='b' && string[6]=='c') {...}
but if I need to evaluate most of the string for example
if (string[10:40] == another_string) {...}
then he gets a lot of words. Are there any ready-to-use solutions?
source share