cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
586
Views
0
Helpful
0
Replies
oyuto1012
Beginner

Questions about EEM trimleft

I have a question about the result of execution in EEM's trimleft command.
Do the symbols (colon) in the string in the trimleft command have any special meaning?

----------------------------------
event manager applet sample1
event none
action 1.0 string trimleft "123:234" "123:"
action 1.1 puts "$_string_result"

Router#event manager run sample1
4
----------------------------------
----------------------------------
event manager applet sample2
event none
action 1.0 string trimleft "123:234" ":"
action 1.1 puts "$_string_result"

Router#event manager run sample2
123:234
----------------------------------
----------------------------------
event manager applet sample3
event none
action 1.0 string trimleft "123:234" "4"
action 1.1 puts "$_string_result"

Router#event manager run sample3
123:234
----------------------------------

sample1
Even "2,3" after colon(:) will be deleted.

sample2
Cannot delete colon(:).

sample3
I can't delete sample4.


Please let me know if there is a solution.

0 REPLIES 0