Parse-RPN
view release on metacpan or search on metacpan
return the length of 'a'
aa CCHHOOMMPP
remove any terminaison line charecter ( CR CR/LF) from 'a'
aa bb CCAATT
return the concatenation 'a' and 'b'
aa bb ...... nn xx CCAATTNN
return the concatenation of the 'x' element from the stack
aa bb CCAATTAALLLL
return the concatenation all element on the stack
aa bb xx JJOOIINN
return the concatenation 'a', 'x' and 'b'
aa bb ...... nn xx yy JJOOIINNNN
return the concatenation of the 'y' element from the stack with 'x' as separator
aa bb xx JJOOIINNAALLLL
return the concatenation all element on the stack with 'x' as separator
aa bb RREEPP
return the result of 'a' x 'b' duplicate 'a' by the number of 'b'
aa RREEVV
return the reverse of 'a'
aa bb cc SSUUBBSSTTRR
return the substring of 'c' starting at 'b' with the length of 'a'
aa UUCC
return 'a' in uppercase
aa LLCC
return 'a' in lowercase
aa UUCCFFIIRRSSTT
return 'a' with the first letter in uppercase
aa LLCCFFIIRRSSTT
return 'a' with the first letter in lowercase
aa RR11 RR22 KK VV SSPPLLIITT22
split a with the REGEX R1
each result are splitted with the REGEX R2
the result are stored in the variable k and v
# .1.3.6.1.2.1.25.3.3.1.2.768 | 48 # .1.3.6.1.2.1.25.3.3.1.2.769 | 38 # .1.3.6.1.2.1.25.3.3.1.2.771 | 42 # .1.3.6.1.2.1.25.3.3.1.2.770 | 58 #,\s?#\s?,\s\|\s,a,b,SPLIT2
return a with .1.3.6.1.2.1.25.3.3.1.2.768,.1.3.6.1.2.1.25.3.3.1.2.769,.1.3.6.1.2.1.25.3.3.1.2.771,.1.3.6.1.2.1.25.3.3.1.2.770
and b with 48,38,42,58
!!! becare, if you need to use : as a regex, you need to backslash to prevent overlap with new dictionary entry
SPLIT return the matched value WITHOUT the empty string of the beginning
aa bb SSPPLLIITT
return all splitted item of 'a' by the separator 'b'
'b' is a REGEX
!!! becare, if you need to use : as a regex, you need to backslash to prevent overlap with new dictionary entry
!!! if the split match on the beginning of string,
SPLIT return the matched value WITHOUT the empty string of the beginning
aa bb SSPPLLIITTII
return all splitted item of 'a' by the separator 'b'
'b' is a REGEX case insensitive
!!! becare, if you need to use : as a regex, you need to backslash to prevent overlap with new dictionary entry
!!! if the split match on the beginning of string,
SPLIT return the matched value WITHOUT the empty string of the beginning
aa bb PPAATT
return one or more occurance of 'b' in 'a'
'b' is a REGEX
!!! becare, if you need to use : as a regex, you need to backslash to prevent overlap with new dictionary entry
aa bb PPAATTII
return one or more occurance of 'b' in 'a'
'b' is a REGEX case insensitive
!!! becare, if you need to use : as a regex, you need to backslash to prevent overlap with new dictionary entry
aa bb TTPPAATT
test if the pattern 'b' is in 'a'
'b' is a REGEX
!!! becare, if you need to use : as a regex, you need to backslash to prevent overlap with new dictionary entry
aa bb TTPPAATTII
test if the pattern 'b' is in 'a'
'b' is a REGEX
!!! becare, if you need to use : as a regex, you need to backslash to prevent overlap with new dictionary entry
aa bb cc SSPPAATT
substitute the pattern 'b' by the pattern 'a' in 'c'
'b' and 'c' are a REGEX
!!! becare, if you need to use : as a regex, you need to backslash to prevent overlap with new dictionary entry
aa bb cc SSPPAATTGG
substitute the pattern 'b' by the pattern 'a' in 'c' as many time as possible (g flag in REGEX)
'b' and 'c' are a REGEX
!!! becare, if you need to use : as a regex, you need to backslash to prevent overlap with new dictionary entry
aa bb cc SSPPAATTII
substitute the pattern 'b' by the pattern 'a' in 'c'case insensitive (i flag in REGEX)
'b' and 'c' are a REGEX
!!! becare, if you need to use : as a regex, you need to backslash to prevent overlap with new dictionary entry
aa bb cc SSPPAATTGGII
substitute the pattern 'b' by the pattern 'a' in 'c' as many time as possible (g flag in REGEX)
and case insensitive (1 flag in REGEX)
'b' and 'c' are a REGEX
!!! becare, if you need to use : as a regex, you need to backslash to prevent overlap with new dictionary entry
aa ...... zz PPRRIINNTTFF
use the format 'z' to print the value(s) on the stack
7,3,/,10,3,/,%d %f,PRINTF -> 2 3.333333
see printf in perl
aa bb PPAACCKK
pack the value 'a' with the format 'b'
2004,06,08,a4 a2 a2,PACK
result: 20040608
see pack in perl
aa bb UUNNPPAACCKK
unpack the value 'a' with the format 'b'
20040608,a4 a2 a2,UNPACK
( run in 1.004 second using v1.01-cache-2.11-cpan-71847e10f99 )