So how would I modify the Regex pattern if I want to look for a nine digit string where the first seven characters are digits and the last two are either "LP" or "UP"? For example: 1018003LP 1016001UP 1031002UP 1015004LP   I was thinking something like this would do the trick, but it's not working. $sOutPut_AfterStep1 = StringRegExpReplace($sFileRead_LineByLine, "(?i)\h+\b(\d{7}\w{2})\b", @TAB & "\1" & @TAB)   *EDIT: Actually, that does seem to b