Tag: 数据提取

如何从string中提取浮动数字

我有一些类似于Current Level: 13.4 db.的stringCurrent Level: 13.4 db. 我只想提取浮点数。 我说浮动,而不是小数,因为它有时是整体。 RegEx能做到这一点,还是有更好的办法?