Twitter | Search | |
This is the legacy version of twitter.com. We will be shutting it down on 15 December 2020. Please switch to a supported browser or device. You can see a list of supported browsers in our Help Center.
@rem
Suspect this only helps me, but I wanted a webgui for transforming globs of text into JSON that I could feed into software.
Reply Retweet Like More
@rem 1 Sep 19
Replying to @rem
Really didn't think people would find *that* useful. The code is pretty messy. I wrote it quickly this morning.
Reply Retweet Like
Carlos Fonseca 1 Sep 19
Replying to @rem
Nice! Kinda wish one could save the transforms (some url shenanigans or something) for reuse later.
Reply Retweet Like
@rem 1 Sep 19
Replying to @carlosefonseca
Yeah, I can see saving the rules to the URL as straight forward, but it won't include the source text.
Reply Retweet Like
@rem 1 Sep 19
Replying to @fregante @csswizardry
Oh, that's exactly how I cleaned it up first time. I'm getting a dab hand at awk, but I wanted something with the webgui so I could make it a little more approachable (plus the preview)
Reply Retweet Like
@rem 1 Sep 19
The "matches" options will only go into full regex if you lead and end with / - and the code errors quietly (because I wrote it all in an hour! 😃)
Reply Retweet Like
Shane Smith 3 Sep 19
Replying to @rem @code
My current approach for similar tasks is multi-line editing in an IDE (e.g. ). Works wonders.
Reply Retweet Like
@rem 3 Sep 19
Replying to @shanesmithau @code
I tend to reach for awk + jq
Reply Retweet Like
Johannes Schröder 1 Sep 19
Replying to @rem
This is incredible helpful. 👏
Reply Retweet Like