Hi @Cholotron ,
Use the regular expression ^N\d{1,3}
to match an "N" follow by a number, 1, 2 up to 3 digits
at the beginning of the string
Function RemoveNWithDigits(input As String) As String
Dim pattern As String = "^N\d{1,3}"
Dim regex As New Regex(pattern)
Dim output As String = regex.Replace(input, "")
Return output
End Function
Best Regards.
Jiachen Li
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.