Coding help! TextOperations not surport text with space

Nimeld

Farmhand
I tried to change Linus's last schedule, only change the last one schedule in the day. But the code only surport to search and replace one value or word, if there are spaces in them, it won't work.


{
"Action": "EditData",
"Target": "Characters/schedules/Linus",
"TextOperations": [
{
"Operation": "ReplaceDelimited",
"Target": ["Entries", "spring"],
"Search": "2300 Tent 4 4 2",
"Value": "2300 Tent 12 10 2",
"Delimiter": " "
}
]
}
 

Nimeld

Farmhand
Problem solved!
One action can only handle single one value


{
"Action": "EditData",
"Target": "Characters/schedules/Linus",
"TextOperations": [
{
"Operation": "ReplaceDelimited",
"Target": ["Entries", "spring"],
"Search": "4",
"Value": "10",
"ReplaceMode": "Last",
"Delimiter": " "
}
]
},
{
"Action": "EditData",
"Target": "Characters/schedules/Linus",
"TextOperations": [
{
"Operation": "ReplaceDelimited",
"Target": ["Entries", "spring"],
"Search": "4",
"Value": "12",
"ReplaceMode": "Last",
"Delimiter": " "
}
]
}
 
Top