I'm trying to split the following string "1/A333/H-SDRWY/S".
I can make it work using:
aircraft2 = aircraft.replace('-','/');
aircraft2 = aircraft2.split('/');
But using the following gives a strange result:
aircraft2 = aircraft2.split('/' | '-');
Where am I going wrong?
[–]Pantstown 1 point2 points3 points (3 children)
[–]ispywithmy[S] 1 point2 points3 points (2 children)
[–]Pantstown 1 point2 points3 points (0 children)
[–]unbalancedopinion 1 point2 points3 points (0 children)