Based on the data you've provided, s[(\s{2})(?=\d)][2]g should do what you want.Or (more simply, IMHO) use \h [horizontal whitespace] instead of \s
In reply to Re^2: Perl regex. Why does this happen?
by OneTrueDabe
in thread Perl regex. Why does this happen?
by $h4X4_|=73}{
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |