I am trying to extract a alphanumeric value from a string array using RegEx. Examples:
- Apartment 101/B First
- Villa 3324/A Second
- Milk 12MG/ML Third
- Sodium 0.00205MG/ML Fourth
- Water 0.00205MG Fifth
- Eggs 100 Sixth
My aim is to extract values: 101/B, 3324/A, 12MG/ML, 0.00205MG/ML from the above string arrays. The RegEx I was able to get is something like this: ^[a-zA-Z0-9\.]*$ which is generic alphanumeric regex.