Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87055

How can set a var array for tabs?

$
0
0

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:

 

before.jpg

 

AFTER CHANGE:

 

after.jpg

 

 

thanks

 

John


Viewing all articles
Browse latest Browse all 87055

Trending Articles