Click here to Skip to main content
15,887,083 members

Comments by Kundan D (Top 3 by date)

Kundan D 12-Jan-23 21:59pm View    
This is close but doesnt work.

the dasd + "sadsd" string is representative, there can be absolutely anything there... so it will be better if you can accommodate all that into a single group. There can be nums, strings, parenthesis too. I need to cover all those cases, maybe i should've included that in my original question.
Kundan D 12-Jan-23 20:38pm View    
Deleted
I tried your solution on https://regexr.com/ but it doesnt match my string Logger.info(className, dasd + "sadsd" + " [" + Thread.currentThread().getStackTrace()[1].getLineNumber() + "]");
Kundan D 12-Jan-23 20:28pm View    
I want to add the thread statement to all the loggers in our code base.
The logger follows a similar format as I've shown and there are thousands of loggers so I cant edit them one by one so regex is simpler I think