Hey,
This is probably very simple but am having a mind block and am quite new to RegExs. I need to extract a string Starting EMI followed by a combination of numbers and/or letters from a string. Probably easiest to explain with examples:
1: String: _01_00_001_PART_ASSEMBLY_EMI1234 Retrieve: EMI1234
2: String: _01_00_001_PART_EMI7882_SP1801387 Retrieve EMI7882
3: String: DDR_SP1801387_01_00_001_PART_EMI3404A Retrieve:EMI3404A
4: String: 01_00_001_PART_EMI7882CD_SP1801387 Retrieve: EMI7882CD
The "EMI" will only ever occur once in the string, basically I want to extract everything following the EMI up until the next underscore or the end of the string.
Bookmarks