Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不知道这是否可能。我只想要七位数字 + 1-2 个字母(如果有的话)取出。例如:
1300165A panadol 5mg panadol 1% *1370100 panadol 2 mg, CL: 1300232 1330186AA
想得到:
1300165A 1370100 1300232 1330186AA
有人有想法吗?
regexp_substr(your_string, '(^|\W)(\d{7}[A-Z]{0,2})(\W|$)', 1, 1, '', 2)
小提琴