What are common regex flags and what do they do?
          
            Flags such as g, i, m, s, and u adjust matching behavior—use them to find multiple results, ignore case, work with multiline input, or enable Unicode.
          
        
        
          How can I avoid catastrophic backtracking?
          
            Keep quantifiers specific, avoid nested wildcards, and consider atomic or possessive groups to prevent exponential backtracking on crafted inputs.
          
        
        
          Does this regex tester send my sample text to a server?
          
            No. Testing happens entirely in your browser so log snippets, payloads, and secrets remain private.
          
        
        
          When should I use lookaheads or lookbehinds?
          
            Use lookarounds to assert surrounding context without consuming characters—helpful for password policies, boundary checks, or format validation.
          
        
        
          What is the best way to validate email addresses with regex?
          
            Simple regexes cover common cases, but no pattern fully implements RFC 5322. Pair regex with domain validation or verification emails for accuracy.