Hallo
Ich habe zwei Fragen, wenn Sie mir helfen können, werde ich Ihnen dankbar sein
1: Ich habe mehrere Rake-Posts: neu zuordnen, mehr als 1000
Beispiel:
rake posts:remap["https://demo.com/?p=100041115","https://www.discourse.com/t/14529"]
rake posts:remap["https://demo.com/?p=100041158","https://www.discourse.com/t/14530"]
rake posts:remap["https://demo.com/?p=100041181","https://www.discourse.com/t/14531"]
rake posts:remap["https://demo.com/?p=100041222","https://www.discourse.com/t/14532"]
rake posts:remap["https://demo.com/?p=100041280","https://www.discourse.com/t/14533"]
rake posts:remap["https://demo.com/?p=100041321","https://www.discourse.com/t/14534"]
rake posts:remap["https://demo.com/?p=100041556","https://www.discourse.com/t/14535"]
rake posts:remap["https://demo.com/?p=100041629","https://www.discourse.com/t/14536"]
rake posts:remap["https://demo.com/?p=100041642","https://www.discourse.com/t/14537"]
rake posts:remap["https://demo.com/?p=100041745","https://www.discourse.com/t/14538"]
Wie kann ich sie alle gleichzeitig ausführen?
2: Wie kann ich Regex Remap verwenden?
um den Text in allen URLs zu entfernen, die am Ende Text haben, wie diese
https://demo.com/?p=100041115/text-text
damit sie so aussehen
https://demo.com/?p=100041115
entfernen Sie einfach den Text am Ende dieser URLs
Vielen Dank.