Skip to main content
11 events
when toggle format what by license comment
Feb 7 at 11:21 answer added Sami Fennich timeline score: 0
Jun 4, 2016 at 3:21 vote accept user2044638
May 20, 2016 at 7:02 answer added user9999999 timeline score: 5
May 16, 2016 at 5:37 comment added user2044638 @basin It's less of a problem of availability of perl regex and more of a problem with "search and replace" using a more complex regex that's supposed to match (and replace with) multiline strings. As I stated in my question perl itself cannot do this without some added programming logic dealing with the multiline regex which makes the syntax more complicated.
May 16, 2016 at 5:36 history edited user2044638 CC BY-SA 3.0
added 1883 characters in body
May 15, 2016 at 20:55 comment added basin ssed (super sed) supports perl regex
May 15, 2016 at 20:51 comment added basin There's a snippet to load the whole file into sed's pattern space: sed -e :a -e '$!{N;b a}' -e other_commands... . This way you can use multiline regex
May 15, 2016 at 19:27 history edited user2044638 CC BY-SA 3.0
added 9 characters in body
May 15, 2016 at 19:23 comment added user2044638 @DopeGhoti Are you certain you read my question properly? I'm pretty sure sed doesn't support multiline regex with such simple syntax and as far as I know it doesn't support lookahead or lookbehind at all.
May 15, 2016 at 19:17 comment added DopeGhoti Uh.. that's exactly what sed does. sed --in-place 's/expr/replacement/' /path/to/file
May 15, 2016 at 19:08 history asked user2044638 CC BY-SA 3.0