problem with finding the function of python

The problem here can be illustrated with a simple example:

String s = "Requirement 1 is present in Table 12";
int i = s.find("Table 1");

This will find a match. You need to find a way to avoid this. One possible solution is to use regular expressions to parse the word “Table” and the number. Then you can compare with strict equality if any of those are the table you are looking for.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top