cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1302
Views
5
Helpful
0
Replies

What is so special about a colon in string trim?

pingduck
Level 1
Level 1

Here is an EEM script for testing string trim:

 

event manager applet t

event none

action 1 set i "flash:/abc/def/ghia"

action 2 puts "'$i'"

action 3 string trimleft "$i" "flash:/"

action 4 puts "'$_string_result'"

action 5 string trim "$i" "flash:/"

action 6 puts "'$_string_result'"

 

I see a really strange result:

 

#event manager run t

'flash:/abc/def/ghia'

'bc/def/ghia'

'bc/def/ghi'

 

What does the ":" mean in the trim string?

 

0 Replies 0