I have to delete the row which is coming after the word summary, but it should meet the condition
Input:
| Field1 |
| ####123.54#21#INR |
| ####Summary |
####213,54.0123#TKU |
| ####1453#Alex#458956 |
| ####Summary |
| ####1452#USD |
| ####7845#INR |
Condition:
1. Condition is whenever I find a row which has a summary in it I have to delete the below rows till they have 5 # sings if it contains less than 5 signs then stop.
Output:
| Field1 |
| ####123.54#21#INR |
| ####1453#Alex#458956 |