[Solved] java regex to extract log from a log file


If you want to extract only DEBUG lines, try with:

DEBUG[^*]*

DEMO

you can chage a log information type by changing DEBUG on anything else. So the main part would be:

TYPE[^*]*

5

solved java regex to extract log from a log file