Batch Syntax Fix with Line-Based Fallback When regex replacement fails on repeated syntax patterns across 10+ files, write a line-based fixer script that reads/writes line-by-line instead. Test the regex pattern on raw bytes first ( notation) to catch invisible whitespace (e.g., vs ). If regex misses edge cases, iterate with simpler patterns or switch to manual line parsing. Verify all files parse cleanly afterward with or equivalent before committing. ---