View Single Post
Old 05-07-2020, 01:07 PM   #11
yamusing
Enthusiast
yamusing began at the beginning.
 
Posts: 49
Karma: 10
Join Date: Jul 2019
Device: none
Quote:
Originally Posted by chaley View Post
The regular expression needs to account for the position of the desired field in the string. which can be first, middle, or last. For example:
Code:
^(.*?, *|)(weight:.+?|)(,.*?|)$
The above expression doesn't work if there isn't a "weight:...." tag somewhere in the list.

I leave it to you to figure out how to change the expression you use to delete the tag from the tag set. The change will be similar.
is it possible to excude the "weight:" text from moving to the other field?

test: "case:AR5steel, light, group:Fractal-group, weight:@seventyOne'Kilos, Xeon, ZRX0, ZRX4"
result: "weight:@seventyOne'Kilos"

The result am looking for is "@seventyOne'Kilos".
yamusing is offline   Reply With Quote