Post 9vdjLdS6vwUo7DqT32 by icyphox@freeradical.zone
(DIR) More posts by icyphox@freeradical.zone
(DIR) Post #9vdjLQ5ec7oAfoEqjw by icyphox@freeradical.zone
2020-06-01T12:14:58Z
0 likes, 0 repeats
Been regexin' all day.
(DIR) Post #9vdjLQIPqg15JOD2dE by icyphox@freeradical.zone
2020-06-01T12:15:17Z
0 likes, 0 repeats
It doesn't work, by the way. :v
(DIR) Post #9vdjLRu1sJhKIKoatk by icyphox@freeradical.zone
2020-06-01T12:18:34Z
0 likes, 0 repeats
If someone could tell me why, that'd be great. It works on regex101, but not in awk. :[
(DIR) Post #9vdjLTVHvH5zGBFrc0 by icyphox@freeradical.zone
2020-06-01T12:21:26Z
0 likes, 0 repeats
I mean, it works if there's only one link in a line, but not if there are more than one. For ex: [asdf](http://some.link) and [another](http://another.link)This breaks in awk, works in regex101.
(DIR) Post #9vdjLV6twumEF7rPsW by icyphox@freeradical.zone
2020-06-01T12:23:35Z
0 likes, 0 repeats
For context (I should've mentioned this way earlier lol)—I'm writing a markdown subset in pure awk, to generate HTML. The code is here: https://github.com/icyphox/mawkdown
(DIR) Post #9vdjLaT41wTYrJGgcK by icyphox@freeradical.zone
2020-06-01T12:37:39Z
0 likes, 0 repeats
Woah, I mostly got it to work! It's still using the previous link's text and link though. Have to figure out how to isolate them.
(DIR) Post #9vdjLdS6vwUo7DqT32 by icyphox@freeradical.zone
2020-06-01T13:01:55Z
2 likes, 0 repeats
And it works! Second pic is the final regex. The only thing I had to change was the 'if' → 'while' lol.