Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在Last Backup:和结局之间span
Last Backup:
span
但我得到了空白值?
string test = @">Last Backup: 4/27/13</span></"; string regex = @"(?<=Last Backup: )*.(?='</span')"; var match = Regex.Match(test, regex); Console.WriteLine(match.Value);
Try this: (?<=Last Backup: ).*(?=\</span)
(?<=Last Backup: ).*(?=\</span)
Errors :
.*
'
</span