On 05/05/2016 08:56 AM, Samuel Sieb wrote:
On 05/05/2016 03:35 AM, Ian Malone wrote:
On 5 May 2016 at 10:27, Patrick O'Callaghan <pocallaghan@xxxxxxxxx>
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.
How about looking for "something[0-9]*" so it would match "something" or
"something0" or "something99". "*" can be useful, you just have to be
careful.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 -
- -
- If you're not part of the solution, you're part of the precipitate -
----------------------------------------------------------------------
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
http://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx
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