Traveller Store CotI Features New Posts Mark Forums Read Register


Go Back TravellerRPG.com > Citizens of the Imperium > General Traveller Discussions > Software Solutions

Software Solutions Discussions on Traveller related software.

Reply
 
Thread Tools Display Modes
  #1  
Old October 31st, 2019, 10:43 AM
forthekill forthekill is offline
Citizen: SOC-11
 
Join Date: Oct 2008
Location: Boston
Posts: 88
Gallery : 0
forthekill Citizen
Question RegEx for T5 UWP data

I'm updating some of my gen/display sector stuff, and I'd love to support importing the newest sector format.

I am guessing one of you out there has an updated regex for parsing T5 Second Survey sector data.

If so, could you share it, rather than me spending a bunch of time recreating it? I would be most appreciative!
__________________
"Yeah well, what you plan and what takes place ain't ever exactly been similar."
IMTU tc mgt !3i c+ jt+ au ls pi+ ta- he++
Reply With Quote
  #2  
Old October 31st, 2019, 12:37 PM
forthekill forthekill is offline
Citizen: SOC-11
 
Join Date: Oct 2008
Location: Boston
Posts: 88
Gallery : 0
forthekill Citizen
Default

So as inexorabletash so kindly pointed out, T5 data is not parseable by regex so forget my question!

I'll just have to write new JS for parsing T5 data independently of my parsing of the older formats.
__________________
"Yeah well, what you plan and what takes place ain't ever exactly been similar."
IMTU tc mgt !3i c+ jt+ au ls pi+ ta- he++
Reply With Quote
  #3  
Old October 31st, 2019, 09:25 PM
ShawnDriscoll's Avatar
ShawnDriscoll ShawnDriscoll is offline
Citizen: SOC-13
 
Join Date: Apr 2017
Posts: 870
Gallery : 0
ShawnDriscoll Citizen+ShawnDriscoll Citizen+
Default

I wrote mine in Python for my projects. I don't remember seeing RegEx. Unless you're talking about regular expressions.
Reply With Quote
  #4  
Old October 31st, 2019, 10:46 PM
tjoneslo tjoneslo is offline
Citizen: SOC-14
 
Join Date: Feb 2001
Location: Ferrisburgh, VT, USA
Posts: 2,869
Gallery : 2
Visit tjoneslo's Blog
tjoneslo Citizen+tjoneslo Citizen+tjoneslo Citizen+
Default

https://github.com/makhidkarun/trave...tar.py#L84-L97

I have a regex that can parse the T5 Second Survey data created by Traveller Map. But it only works because the Traveller Map site makes the data regular enough to parse. If you want to parse whatever random data can possibly in the T5 format, well, good luck with that. Like trying to parse HTML with regex.

https://blog.codinghorror.com/conten...egex-zalgo.png
__________________
Archduke of the Solomani Rim - Terra (Solomani Rim 1827)
Duke Akumid - Akumid (Vland 1628)
Marquis Yeremyh - Yeremyh (Solomani Rim 1804)
Marquis Hysyl - Hysyl (Deneb 2425)
Baron Regina - Regina (Spinward Marches 1910)
TAS member - Vipan (Empty Quarter 1038)
Be part of the Traveller history:http://wiki.travellerrpg.com/Main_Page
Reply With Quote
  #5  
Old November 1st, 2019, 08:53 AM
coliver988's Avatar
coliver988 coliver988 is offline
Baron
 
Join Date: Dec 2003
Location: Asheville
Posts: 1,483
Gallery : 102
Visit coliver988's Blog
coliver988 Citizen+coliver988 Citizen+coliver988 Citizen+
Default

Quote:
Originally Posted by ShawnDriscoll View Post
I wrote mine in Python for my projects. I don't remember seeing RegEx. Unless you're talking about regular expressions.
RegEx = Regular Expressions
__________________
Mostly lurking about...CT is still my favorite with T5 as a neat tool box to plunder.


Duke of The Solomani RimLANGELOS A4249A6-FLangelos Write Up AlphaTrane / Glisten 2038
Baron, IpkurIpkur C564543-9Ipkur Write Up AlphaRomar / Glisten 2140
Knight of the Third Imperium [x2]Rhylanor A434934-FCyan / Trojan Reach 2102
Knight of the Third ImperiumIkuna E000410-AKryslion / Trojan Reach 2002
MCG For Conspicuous GallantryThe Assault On AlellSelshor / Trojan Reach 1402
Travellers Aid Society 2798Dudid B510526-9Blog - mix of OTU and MTUhttp://traveller-ct.blogspot.com/
Pilots Guide To D'Arlee QuadrantTraveller Github spacehttps://github.com/COliver988/Traveller
Reply With Quote
  #6  
Old November 1st, 2019, 11:37 AM
Maksim-Smelchak's Avatar
Maksim-Smelchak Maksim-Smelchak is offline
Citizen: SOC-12
 
Join Date: Nov 2005
Location: Sacramento
Posts: 280
Gallery : 0
Maksim-Smelchak Citizen
Default

Can you copy and paste the data and then insert it to a spreadsheet and then...

Shalom,
Maksim-Smelchak.
__________________
Lord Maksim-Smelchak,
Marquis and Master of Sophontology of the Imperial Ministry of Science of the Third Imperium,
Master Traveller Chronicler, Wiki Guy & FFE Chief Gopher
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Should the OTU UWP Data be Updated? Supplement Four TAS Opinion Polls 206 January 29th, 2015 04:17 AM
XML Data Format robject Traveller 5 9 August 13th, 2014 09:49 AM
UPP Data in Excel Bob Weaver Software Solutions 5 September 24th, 2013 07:08 PM
Primordials - Any Further Data? Nathan Brazil MegaTraveller 2 December 27th, 2012 08:27 AM
MJD: UWP data included? cgriffen Traveller: The New Era 2 October 7th, 2002 04:23 PM

This website and its contents are copyright ©2010- Far Future Enterprises. All rights reserved. Traveller is a registered trademark of Far Future Enterprises .
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2010-2013, Far Future Enterprises. All Rights Reserved.