Подскажите как еще сделать такое.
Нужно удалить все кроме числового SubID в самом начале списка или наоборот взять эти цифры из самого начала списка.
Чтобы остались только цифры.
И добавить к ним затем запятую.
Чтобы в конечном итоге список выглядел вот так:
Код:

281171,71743,182861,...,.....,
Это список для примера который нужно обратотать
SubID | Название (показывает только бесплатные подписки)
804814 | World of Warships — FREE New Year Camo Collection
787633 | Warhammer: Vermintide 2 - A Treacherous Adventure
788378 | Phoning Home
567322 | Warhammer: Vermintide 2 - Chaos Wastes
604503 | Lunar's Chosen
752303 | Republique
563576 | Agent 64: Spies Never Die Demo
583361 | Terra Nil Demo
725065 | Anger Foot Demo
719287 | Potion Permit Demo
704024 | Metal: Hellsinger Demo
727010 | Cult of the Lamb Demo
699406 | Lucky Tlhalerwa - Zombie Rampage
65638 | The Elder Scrolls: Legends
651626 | The Elder Scrolls: Arena
651657 | The Elder Scrolls: Daggerfall
674041 | Wolfenstein: Enemy Territory
639775 | [RU] Black Desert – Бесплатный подарочный набор
537835 | 全网公敌 - Original Soundtrack
520653 | Girl's Lovecast
677669 | World of Warplanes - I-5 SHKAS Pack
239270 | World of Warplanes
681018 | World of Warships — Publisher's Gift
679567 | World of Tanks - Steam Pack
505784 | Store install - CIS
674005 | PUBG: BATTLEGROUNDS
555286 | Beast Crimes
663667 | Pixel Puzzles - Japan
661952 | Mythic Archive
295378 | Century
390408 | 告死天使之言 - Death angel - Commercial License
244494 | Bad Day
469924 | The Running Man
620296 | Viral Firar
517778 | Squirrelmageddon!
520348 | Swing Dunk
625673 | Axilon: Legend of Artifacts - Prologue
521878 | Dagon
624715 | Welcome to Free Will
587487 | Zombies Beyond Me
230235 | Blade Runner 9732
274209 | Saint Kotar: The Yellow Mask
581993 | Blood Spear
351192 | Ikeda : The Scrap Hunter E.P.
582853 | XERA: Survival
343294 | Arcane Sorcery
92576 | FNaF World Free-to-Play
555070 | Artifact
534914 | Foglight Online - game removed, set free by accident
539960 | Incremental Epic Hero
551121 | Sporadic Spire
548257 | INFINITE VERSUS - Prologue
463904 | BATTLESHIP APOLLO
544253 | Super Raft Boat
539382 | The Legend of Karl
535814 | Etched Memories Demo
137368 | World of Warships
323845 | Disabled Package 323845
284242 | Disabled Package 284242
321646 | Disabled Package 321646
214842 | Disabled Package 214842
330078 | Disabled Package 330078
321643 | Disabled Package 321643
216315 | Disabled Package 216315
51622 | TDGame
382857 | DreamFly
134268 | KARDS
479951 | Golden Axed: A Cancelled Prototype
479942 | Streets Of Kamurocho
479948 | Endless Zone
479945 | Armor Of Heroes
510367 | Total War: SHOGUN 2 - Battle of Kawagoe
414960 | Bodyless
492720 | 6th Dimension
495583 | Janosik
490491 | Prototype ONE DAY I AM
424640 | Space Avengers
502260 | Chip's Challenge 1 - Free
497298 | Shrine II
502216 | Rogue Rails
501985 | SWAM
345425 | Wide Cross
484645 | Soulfire
432865 | To the Edge of the Sky
450499 | Kill It With Fire: Ignition
423899 | Trials of Mana Demo
436910 | com.ripostegames.shopr
420223 | SUPER CIRCUIT BREAKERS - PAYNE
420219 | SUPER CIRCUIT BREAKERS
463268 | Higurashi When They Cry Hou - Ch.1 Onikakushi FREE
455750 | Meditation Spiritual Journey
451929 | Influent Free Edition - No Longer Available
446896 | Clandestinity of Elsie
395429 | Totally Unbalanced
439194 | The Council - Episode 1
425756 | Cat Simulator
425752 | CATS!
308559 | Royal Booty Quest
163320 | MAD MACHINES
209465 | HitBox - Free
206187 | Stash
91906 | The Lion's Song
390080 | The Minotaur
21340 | Dungeonland
413552 | eFootball PES 2020 LITE
55694 | AirBuccaneers
325287 | Runeyana
354837 | King Arthur's Gold
286162 | The Grandfather
286161 | The Lady
394708 | 烽火大秦
416947 | Ylands
72913 | SMITE
266861 | Onmyoji
68255 | Tree of Savior (English Ver.)
170124 | Idle Champions of the Forgotten Realms
100102 | Crush Crush
73321 | Brawlhalla Free On Demand
21457 | Magicka: Wizard Wars
21469 | No More Room in Hell
410984 | Drawkanoid: Review Breaker
414139 | Deathgarden: BLOODHARVEST
307375 | Archangel
183300 | Yume Nikki
367403 | Eden Rising: Explorer Edition
380317 | Spaceship Looter
249394 | Spellsworn Free Weekend - Mar 2018
394610 | Dimension Jump
405433 | Crusader Kings II
395268 | Ring of Elysium-One Year Anniversary Pack
222829 | Ring of Elysium
398272 | Destiny 2
152535 | Warhammer 40,000: Eternal Crusade
394345 | Phantasmal
391326 | Spintires® - Canyons DLC
255277 | Mr. Barrel free - No Longer Available - Empty
324507 | Wall Street Tycoon
297438 | DISSIDIA FINAL FANTASY NT
377977 | Planet Explorers
241362 | Mirt. Tales of the Cold Land. Chapter 2 - Free
96744 | The Lab
21327 | Star Conflict
248847 | Realm Royale
83621 | Star Crusade CCG
47466 | Heroes & Generals
44226 | Robocraft
21353 | War Thunder
138584 | World of Tanks Blitz
21350 | Warframe
192565 | Unturned
308811 | Love Thyself - A Horatio Story
221000 | Battlerite - Free
215914 | The VU
193437 | Symploke: La Leyenda de Gustavo Bueno (Capitulo 1)
127907 | Solitaire Royale
197812 | Secret World Legends
147998 | Savage Resurrection - Free
198197 | Rogue Operatives - Free
86323 | Pool Nation FX Free
243018 | REC
91330 | Grimoire: Manastorm Free
215027 | Deceit
54903 | Dirty Bomb
270342 | Return NULL - Episode 1 - Free
309503 | NaissanceE
208874 | Forgotten Lore
98473 | Deuterium Wars
301807 | Himno
123447 | TeraBlaster Free
344627 | Golf Galore - Appreciation Pack
351193 | Golf Galore
190793 | Hate Free Heroes Online - ELITE Sponsorship Package
350627 | Agents of Aggro City Online
130344 | Dead or Alive 5 Last Round: Core Fighters
109751 | Call to Arms
182501 | SANKHARA
163823 | One Eyed Kutkh
161241 | Null Vector
146518 | Magic Lantern
140534 | it's always monday
182073 | Grand Expanse
193080 | Disco Destruction
187317 | empty
207076 | The Pillage
224602 | Cat Burglar: A Tail of Purrsuit
239540 | Out way
256742 | Kolb Antarctica Experience
251338 | Picross Fairytale: Legend of the Mermaid
266760 | Slum Ball VR Tournament
264982 | Replace of the Reality
264588 | BlackFaithSV
302144 | 阿比斯的宝藏
299691 | Dark Places
331103 | RoboVirus
334368 | Discord Bot - Controls
189740 | Drunken Wrestlers 2
114158 | Street Warriors Online
66435 | The Desolate Hope
33333 | Get Off My Lawn
97621 | Realities
185200 | Fantasya Final Definitiva REMAKE
307479 | Little Square Things
21250 | NEO Scavenger Demo
308136 | 神遊敦煌-莫高窟第61窟
45946 | Reversion: The Escape
178295 | The Drone Racing League Simulator
59145 | Universal Combat CE
249461 | Lords of Kingdoms
339841 | Puzzle
174746 | Pixel Worlds
279862 | Top Down Racer
246057 | Marble Run 2D
95143 | Corroded
325168 | Death Train VR - Free
198559 | Community Garden
53342 | Kingdoms CCG
119599 | VR Gallery
278211 | 东方大战争 ~ Touhou Big Big Battle
286729 | VR Paradise
166679 | Mirt. Tales of the Cold Lands
160595 | MetaMorph: Dungeon Creatures
291084 | crazy maze
113027 | Dungeon Fighter Online
316259 | Bless Online
73822 | Tera RU
21357 | Path of Exile
364413 | A Game of Games Demo
347132 | DEAD OR ALIVE 6 - Core Fighters
82308 | Electric Highways
83229 | Skyforge
139823 | EVE Online
62217 | RIFT
21310 | Neverwinter
21358 | Panzar
21490 | Villagers and Heroes
201536 | Life is Feudal: MMO
343751 | Wild Terra Online - Free
21458 | AirMech
311152 | Techwars Global Conflict
164461 | Evolution
62747 | Survarium
58123 | sZone-Online
224260 | Struckd - 3D Game Creator
21312 | Fallen Earth
57532 | Among Ripples
202996 | Last Days Free Copy
116338 | Life is Strange Episode 1
181773 | Crossout
328698 | Minion Masters
276345 | Interloper
311997 | Yet Another Zombie Defense
30798 | Reserve (Rifleman) Free
292439 | Mimpi Dreams Free
203046 | Castle Clicker
314750 | Mobile Astro
303386 | Counter-Strike: Global Offensive Free Edition
209752 | Spacelords
147786 | CLASH
180949 | Awesomenauts F2P
36804 | Counter-Strike Nexon: Zombies
204432 | Supraball - Free
52357 | Killing Floor - Toy Master
154080 | Gem Wars: Attack of the Jiblets FREE
182876 | Battleborn
94404 | Paladins
246566 | INTERSHELTER
252108 | H1Z1
182861 | HITMAN™ Free Trial
71743 | Relic Hunters Zero: Remix
281171 | Cuisine Royale