Working with expressions
Please note that the execution time of a regular expression is 5 seconds.
findall() | similar()
LEGEND:
! - Required parameters
Search in a string using a regular expression
findall(reg, str, index) - to find all group matches in a string
Parameters:
! reg - regular expression
! str - string in which search is performed
index - index of found result. It starts at zero. That means the first found result has index 0.
String comparison with typo tolerance
similar(str1, str2) - compares two strings allowing for typos. Returns True if the strings differ by less than 30%.
Last updated




