Translation should be pretty straightforward, conditionals allow for regex matching. Like so:
if [Mach] =~ /^T\d{4}WKS([0-9]+)$/ {
# do stuff
}
else if [Mach] =~ /^\w{7}+$/ {
# do stuff
}
else if [Mach] =~ /^\w{12}+$/ {
# do stuff
}
else {
# do stuff
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.