MW# 100166-197290
MW# SDHH01124
i want the output as 100166-197290 MW# will remain constant always
another document has MW# SDHH01124
i want the output as SDHH01124
i want always the text to retrieved after MW#
MW# 100166-197290
MW# SDHH01124
i want the output as 100166-197290 MW# will remain constant always
another document has MW# SDHH01124
i want the output as SDHH01124
i want always the text to retrieved after MW#
Hey @T_Y_Raju
try this:
System.Text.RegularExpressions.Regex.Match(inputString, "MW#\s+(.*)").Groups(1).Value
Hello @T_Y_Raju
You have a few options already but I have accounted for when there may be characters on the same line after the required text.
Cheers
Steve
@T_Y_Raju You can follow this regex
(?<=MW#\s+)[A-Z0-9-]+
hello @T_Y_Raju
you can try
hope it will help you.
Regards,
Dheerandra Vishwakarma