I am aware that in bash you can go
and this will check for if the variable "var" contains the text "value". How would one go about doing this in python?Code:if [[ $var =~ "value" ]]; then
so far, I have
but that is of course to check if it is solely equal to it - I want to detect if it contains itCode:if var == value:
Bookmarks