Come non dici quanto segue in regex:Convertire gli spazi per le schede in RegEx
foreach line
look at the beginning of the string and convert every group of 3 spaces to a tab
Stop once a character other than a space is found
Questo è quello che ho finora:
/^ +/\t/g
Tuttavia, questa converte ogni spazio a 1 scheda
Qualsiasi aiuto sarebbe apprezzato.
Si prega di inviare il codice che hai scritto finora. Le persone in genere non amano scrivere solo per il codice per te. –