Forum Discussion

Timble's avatar
Timble
Copper Contributor
Mar 13, 2025
Solved

Multiple spaces in a regex

Hello folks. I was trying to write a regex that would detect Secret S E C R E T S  e  c  r  e  t se C re T ie, 'secret', case-insensitive and possibly with spaces between the lett...
  • milgo's avatar
    Mar 26, 2025

    Thanks for reaching out. Try this pattern (?i)\bs\s*e\s*c\s*r\s*e\s*t\b to see if it fits your scenario.

Resources