I need to check a string using apex whether it is in the following format:
- Anything-Insert-Anything-True
- Anything-Update-Anything-True
- Anything-Delete-Anything-False
Anything(it can be any string).
The last one may be true or false.
How to check it using apex? need help