On Thu, May 05, 2016 at 08:56:51AM -0700, Samuel Sieb wrote:
> On 05/05/2016 03:35 AM, Ian Malone wrote:
> > On 5 May 2016 at 10:27, Patrick O'Callaghan <pocallag...@gmail.com> wrote:
> > > On Wed, 2016-05-04 at 16:24 -0700, Samuel Sieb wrote:
> > > > Oh, right.  I never use a regexp that can match nothing, so I missed
> > > > that. :-)
> > > 
> > > You never use '*'?
> > > 
> > I guess he meant "match *only* nothing", most of the time using *
> > you'll still use it in combination with a non-empty pattern. Easy to
> > miss that only [something]* can match nothing and therefore first
> > matches at the start of the line.
> > 
> Yes, that's what I meant.  I can't imagine where that would even be useful.

Maybe not useful, but fun:

  $ echo 123456789 | sed 's/Z*/|/g'
  |1|2|3|4|5|6|7|8|9|

-- 
Jon H. LaBadie                  jo...@jgcomp.com
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
http://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to