I try to be able to extract the html element name that comes in 2 form in one regexp in perl
for example i have this :
document.all.ElemName.
and also
document.all[“ElemName“].
and this
document.all[‘ElemName‘].
and i need to get the ElemName ,
i can only capture one opetion , is it posible to extract it in 1 regexp ?
this is what i have :
document.all[\.\w|\[](\w+)
that capture only the first example
This will match all three cases with
ElemNamein the first capture group:Demo here.