将一段话里的形似 5.5" x 11" x 16" 的字符串替换成5.5 x 11 x 16 in的正则表达式
回答
收藏

将一段话里的形似 5.5" x 11" x 16" 的字符串替换成5.5 x 11 x 16 in的正则表达式

池鱼
2023-11-25 11:15·浏览量:479
池鱼
发布于 2023-11-25 11:15479浏览

Recipients will be running in your direction when you advertise on this “color zippin'laptop backpack”! It holds most 15in laptops and features a zippered main body made of 600 denier polyester and 210 denier polyester laptop sleeve (approximately 11" W x 11" H), padded back for extra protection, adjustable padded straps, side mesh pocket for a water bottle or umbrella (approximately 5.25" W x 6.25" H), top carry handle and rubber headphone jack on the front above the angled zipper pocket with accent color stitching. It's available in various color combinations and measures 5.5" x 11" x 16". Handwash only. Recommended weight tolerance is 33 lbs.

我需要把上面这段话的

11" W x 11" H替换成11 W x 11 H in

5.25" W x 6.25" H替换成5.25 W x 6.25 H in

5.5" x 11" x 16"替换成5.5 x 11 x 16 in

原本想用文本替换直接替换"的,但是会影响第一句话里的 “color zippin'laptop backpack”,也达不成我想要的结果。不知道能不能正则表达式啥的替换掉?

同时我想仅保留.',三个标点符号,其他的换成.或者,不知道能通过什么方式实现,还是只能用多几个文本替换一个个的替换?

收藏
全部回答1
最新
发布回答
回答