FC4E-WP5 / metaresolver-handletemplate

1 stars 0 forks source link

Synchronize regex patterns between PID Meta Resolver UI and Template Handle #6

Open asajedi opened 1 year ago

asajedi commented 1 year ago

To be able to use the defined regex patterns for the PID Meta Resolver UI in the Template Handle the implemented patterns in the UI have to be adapted as follow since there have been minor adaptations in the patterns in the Template Handle.

URN-NBN-DE

Template Handle:    ^[U,u][R,r][N,n]:[N,n][B,b][N,n]:[D,d][E,e][a-z0-9()+,\\\-.:=@;$_!*'%\\\/?#]+$  
MR UI:              ^[U,u][R,r][N,n]:[N,n][B,b][N,n]:[D,d][E,e][a-z0-9()+,\\-.:=@;$_!*'%\\/?#]+$

URN-NBN-FI

Template Handle:    ^[U,u][R,r][N,n]:[N,n][B,b][N,n]:[F,f][I,i][a-z0-9()+,\\\-.:=@;$_!*'%\\\/?#]+$
MR UI:                     ^[U,u][R,r][N,n]:[N,n][B,b][N,n]:[F,f][I,i][a-z0-9()+,\\-.:=@;$_!*'%\\/?#]+$

ARK

Template Handle:    ^(a|A)(r|R)(k|K):(?:\/\d{5,9})+\/[a-zA-Z\d]+(-[a-zA-Z\d]+)*$
MR UI:          ^(a|A)(r|R)(k|K):(?:\\/\\d{5,9})+\\/[a-zA-Z\\d]+(-[a-zA-Z\\d]+)*$

arXiv

Template Handle:    ^(a|A)(r|R)(X|x)(i|I)(v|V):\d{2}((9|0)[1-9]|1[0-2])\.\d{4,5}(v\d+)?$
MR UI:          ^(a|A)(r|R)(X|x)(i|I)(v|V):\\d{2}((9|0)[1-9]|1[0-2])\\.\\d{4,5}(v\\d+)?$"