Matching Word & Non-Word Character

  • + 0 comments
    public class Solution {    
    
        public static void main(String[] args) {
            
            Regex_Test tester = new Regex_Test();
            tester.checker("(\\w{3}\\W\\w{10}\\W\\w{3})"); // Use \\ instead of using \ 
        
        }
    }
    

    works fine in java!!