Hi All
I have string containing multiple line . I need to take the value that is next to first meta content=
Kindly help
Hi All
I have string containing multiple line . I need to take the value that is next to first meta content=
Kindly help
Please post some sample textβ¦
Try this
System.Text.RegularExpressions.Regex.Match(str,"(?<=meta content=).*").Value
cheers
Please use this
System.Text.RegularExpressions.Regex.Match(str,β(?<=meta content=").*(?=Followers)β).Value.Trim
cheers
I get all the value after the meta content= . I just need the followers count.Kindly help
Please use like thsi I believe i missed a extra double quote
System.Text.RegularExpressions.Regex.Match(str,"(?<=meta content="").*(?=Followers)").Value.Trim
cheers
did you include this part? (?=Followers)
Else try
System.Text.RegularExpressions.Regex.Match(str,"(?<=meta content="")\d+").Value.Trim
cheers
This worked.Thanks a lot
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.