1381
Views
5
Helpful
0
Replies
What is so special about a colon in string trim?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2020 09:03 PM
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?
Labels:
- Labels:
-
EEM Scripting
0 Replies 0
