I am working with html files which have item 1, item 1a and item 2. is there a way to search backwards and find the item 1a which comes before an item 2?
example:
text= """ this is an example item 1a thanks for helping item 2 blah blah item 1a"""