Search code examples
javaregexregular-language

Regular expression to find System.out.print


I try to create one regular expression allows find all System.out.println or print inside all my java classes.

I need to delete all outputs.

Thanks.


Solution

  • "System\\.out\\.println"
    

    use this regex and replace all with empty string.