<meta name="dc:language" content="en-GB"/>
This is captured as strDCLANGValue1 earlier in my code
However, the only bit I'm interested in is the content between " ", in this case en-GB. So I'm stripping everything else away with the following.
Code: Select all
LTrim>strDCLANGValue1,strDCLANGValue1
Let>dcLangpattern=dc:language.+?content="\K[^"]+
RegEx>dcLangpattern,strDCLANGValue1,0,dcLANGMatches1,nm,0
Trim>dcLANGMatches1_1,dcLANGMatches1_1
However, the language code could be one of 140 different options. How can I check if the code entered does match one of the 140 different options?
The language codes are (they are not case sensitive):
ab
om
aa
af
sq
am
ar
hy
as
ay
az
ba
eu
bn
dz
bh
bi
br
bg
my
be
km
ca
zh
co
hr
cs
da
nl
en
en-GB
en-US
eo
et
fj
fi
fr
fy
gl
ka
de
el
kl
gn
gu
ha
he
hi
hu
is
id
ia
ie
iu
ik
ga
it
ja
jv
kn
ks
kk
rw
ky
rn
ko
ku
lo
la
lv
ln
lt
mk
mg
ms
ml
mt
mi
mr
mo
mn
na
ne
no
oc
or
ps
fa
pl
pt
pa
qu
rm
ro
ru
sm
sg
sa
gd
sr
sh
st
tn
sn
sd
si
ss
sk
sl
so
es
su
sw
sv
tl
tg
ta
tt
te
th
bo
ti
to
ts
tr
tk
tw
ug
uk
ur
uz
vi
vo
cy
wo
xh
yi
yo
za
zu