hi
iam trying to get this value → “Blister III (MarchesiniMB421)”
using regex iam getting this only
can someone help me
Thankyou
hi
iam trying to get this value → “Blister III (MarchesiniMB421)”
using regex iam getting this only
can someone help me
Thankyou
Hello @jai_kumar2 , if you looking to capture the content of each line (or the first of these lines) with :
as the first character, you might use
(?<=\n:).*(?=\n)
Looking for an end of line (EOL) without capturing it then capture all characters until the next EOL (the dot does not match EOL).
EDIT: As @ppr suggests, you should provide some text samples and more context
we would suggest following:
is there any patterns…
Otherwise splitting the text in in lines we can also do:
YourString.Var.Split({Environment.newLine}, StringSplitOptions.RemoveEmptyEntries)(3).Trim()
Hi @jai_kumar2
Try out this expression
System.Text.RegularExpressions.Regex.Match(Inputstring,"(?s)(?<=:\s)(.*?)\)").Tostring
Regards
Gokul
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.