I want to get the first word of astring containing alphanumeric field
EG.
string can be ‘abc123abc’ or ‘abc-123abc’
i just want the first ‘abc’
is there any way to get it without for loop(I want to do this using regex but i don’t know much about regular expression)
actually string pattern is like
[A-Za-z]{2,5}[-]{0,1}[0-9]{1,15}[A-Za-z]{0,15}
My aim is to get the first word
Try as
output