Skip to main content
4 events
when toggle format what by license comment
Sep 16, 2019 at 8:36 comment added G-Man Says 'Reinstate Monica' @cas: Well, sure, we can sit around all day guessing what pattern the OP really wants to match; for example, s/[[:space:]]*"www.yahoo.com"[[:space:]]*,\{0,1\}[[:space:]]*/ /'. But remember that ? and + aren’t defined in POSIX regular expressions.
Sep 16, 2019 at 5:51 comment added cas [[:blank:]]*,?
Sep 16, 2019 at 0:04 comment added steeldriver Perhaps what they meant was to delete the string optionally followed by a comma (i.e. to handle the case where "www.yahoo.com" is the last entry in the list)?
Sep 15, 2019 at 23:56 history answered G-Man Says 'Reinstate Monica' CC BY-SA 4.0