I have following table in Postres
col1
A02BX
A02BX Other drugs for peptic ulcer and gastro-oesophageal reflux disease (GORD); A03AE Serotonin receptor antagonists
I would like to fetch a substring which is a combination of alphabets and numbers like 'A02BX'. The desired output is:
col1
A02BX
A02BX | A03AE
I am unable to find any solution to this. Though I tried fetching alphanumeric string using following pattern. But is matching the whole string.
[a-zA-Z0-9]+
The output I am getting is the same as initial table:
A02BX
A02BX Other drugs for peptic ulcer and gastro-oesophageal reflux disease (GORD); A03AE Serotonin receptor antagonists