Hi eveyone,
Is that possible to set a var array for tabs
for instances:
var oneTab = RegExp(“(.+)\\r”)
var twoTab = RegExp(“(.+)\\t(.+)\\r”)
var threeTab = RegExp(“(.+)\\t(.+)\\t(.+)\\r”)
var fourTab = RegExp(“(.+)\\t(.+)\\t(.+)\\t(.+)\\r”)
var firstCol = RegExp(“(.+)”)
var firstTwo = RegExp(“(.+)\\t(.+)”)
if
null + oneTab or twoTab or threeTab or fourTab
insert two tab before
if
firstCol + tab + oneTab or twoTab or threeTab or fourTab
change to firstCol + tab + tab + oneTab or twoTab or threeTab or fourTab
if
firstTwo + oneTab or twoTab or threeTab or fourTab
remain the same
How can I do that?
BEFORE CHANGE:
AFTER CHANGE:
thanks
John