re.findall(r'(blk_-?\d+)', row['Content'])
时间: 2024-01-23 12:02:12 浏览: 88
pg058-blk-mem-gen.rar_BLK-058_blk-mem-gen_pg058_pg058-blk-mem-ge
This regular expression will find all occurrences of the string 'blk_' followed by an optional negative sign and one or more digits, followed by a space character. It will return a list of all such matches found in the 'Content' string of the given row.
For example, if the 'Content' string was "The block number is blk_123 and the next block is blk_-456 ", this regular expression would return ['blk_123 ', 'blk_-456 '].
阅读全文