Skip to main content
8 events
when toggle format what by license comment
Oct 13 at 10:03 comment added Hannu I'd expect your regexp trickery to be possible also with python 're'
Oct 13 at 9:56 comment added Hannu Yes, replace sys.stdin.readline() with ' '.join( [line for line in sys.stdin]). Untested
Oct 13 at 7:05 comment added Stéphane Chazelas Note your code (compared to perl -lne 'print /"(.*?)"/g') only processes the first line of stdin.
Oct 13 at 7:04 comment added Stéphane Chazelas The more complex ones in my answer are the ones that handle quoted strings containing escaped "s and backslashes.
Oct 12 at 10:58 history edited Hannu CC BY-SA 4.0
deleted 10 characters in body
Oct 12 at 10:48 history edited Hannu CC BY-SA 4.0
added 57 characters in body
Oct 12 at 10:42 history edited Hannu CC BY-SA 4.0
added 2 characters in body
Oct 12 at 10:35 history answered Hannu CC BY-SA 4.0