Can regex support mismatching '\n'? #920
              
                
                  
                  
                    Answered
                  
                  by
                    BurntSushi
                  
              
          
                  
                    
                      freekeeper
                    
                  
                
                  asked this question in
                Q&A
              
            -
| RE2 support does not match newlines. Like this, by setting  Does regex have such a function, or in what way can it be achieved? | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            BurntSushi
          
      
      
        Nov 1, 2022 
      
    
    Replies: 1 comment 3 replies
-
| 
 | 
Beta Was this translation helpful? Give feedback.
                  
                    3 replies
                  
                
            
      Answer selected by
        BurntSushi
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
.does not match\nby default, like just about every other regex engine. And like almost every other regex engine, you can make.match\nby enabling thesflag.