Quirks in export script language

Please check this export script:

01: $filename($getEnv('TEMP')'\Mp3tag.Export.Quirks.txt',ANSI)
02: '==============='
03: '01 ok  put    : '$put(test,$loop(%YEAR%,1)%YEAR%'#'$loopend())
04: '02 ok  get    : '$get(test)
05: '---------------'
06: '03 bad trim   : '$trim($get(test),'#')
07: '04 ok  trim   : '$trim('#2009#2013#','#')
08: '---------------'
09: '05 bad regexp : '$regexp($get(test),'^(.{7})(.*)$','$1')
10: '06 bad regexp : '$regexp($get(test),'^(.{8})(.*)$','$1')
11: '07 bad regexp : '$regexp($get(test),'^.(.+).$','$1')
12: '---------------'
13: '08 ok  put    : '$put(test,'#2009#2013#')
14: '09 ok  trim   : '$trim($get(test),'#')
15: '---------------'
16: '10 ok  put    : '$put(test,'2009-02-01')
17: '11 ok  regexp : '$regexp($get(test),'^(.{7})(.*)$','$1')
18: '12 ok  regexp : '$regexp('08h15',$put(r,'^([0-9]{2}).([0-9]{2})$'),'$0 - $1')' - '$regexp('08h15',$get(r),'$2')
19: '==============='
20:
21: '==============='
22: '01 ok  put    : '$put(test,$loop(%YEAR%,1)%YEAR%'#'$loopend())
23: '02 ok  get    : '$get(test)
24: '---------------'
25: '03 bad trim   : '$trim($get(test),'#')
26: '04 ok  trim   : '$trim('#2009#2013#','#')
27: '---------------'
28: '05 ok  put    : '$put(test,'#2009#2013#')
29: '06 ok  trim   : '$trim($get(test),'#')
30: '---------------'
31: '07 ok  regexp : '$regexp($get(test),'^(.{7})(.*)$','$1')
32: '08 ok  regexp : '$regexp($get(test),'^(.{8})(.*)$','$1')
33: '09 ok  regexp : '$regexp($get(test),'^.(.+).$','$1')
34: '---------------'
35: '10 ok  put    : '$put(test,'2009-02-01')
36: '11 ok  regexp : '$regexp($get(test),'^(.{7})(.*)$','$1')
37: '12 ok  regexp : '$regexp('08h15',$put(r,'^([0-9]{2}).([0-9]{2})$'),'$0 - $1')' - '$regexp('08h15',$get(r),'$2')
38: '==============='

Output:

===============
01 ok  put    : #1 Feb 2009#1996#1998#2002#2004#2005#2010#2011#
02 ok  get    : #1 Feb 2009#1996#1998#2002#2004#2005#2010#2011#
---------------
03 bad trim   : #1 Feb 2009#1996#1998#2002#2004#2005#2010#2011#
04 ok  trim   : 2009#2013
---------------
05 bad regexp : FHE64HE
06 bad regexp : #1 Feb 2009#1996#1998#2002#2004#2005#2010#2011#
07 bad regexp : HE64HE
---------------
08 ok  put    : #2009#2013#
09 ok  trim   : 2009#2013
---------------
10 ok  put    : 2009-02-01
11 ok  regexp : 2009-02
12 ok  regexp : 08h15 - 08 - 15
===============

===============
01 ok  put    : #1 Feb 2009#1996#1998#2002#2004#2005#2010#2011#
02 ok  get    : #1 Feb 2009#1996#1998#2002#2004#2005#2010#2011#
---------------
03 bad trim   : #1 Feb 2009#1996#1998#2002#2004#2005#2010#2011#
04 ok  trim   : 2009#2013
---------------
05 ok  put    : #2009#2013#
06 ok  trim   : 2009#2013
---------------
07 ok  regexp : #2009#2
08 ok  regexp : #2009#20
09 ok  regexp : 2009#2013
---------------
10 ok  put    : 2009-02-01
11 ok  regexp : 2009-02
12 ok  regexp : 08h15 - 08 - 15
===============

DD.20131207.1035.CET

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.