Skip to main content
7 events
when toggle format what by license comment
Apr 13, 2017 at 12:36 history edited CommunityBot
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Mar 10, 2012 at 4:44 vote accept Amelio Vazquez-Reina
Mar 8, 2012 at 6:16 comment added Peter.O Those perl regex asserts look really useful! I've been reading about them after seeing you use both backward and forward assertions, even in grep (I'd switched off to the the fact you can choose a regex engine). I'll be devoting a bit more time to perl's regex from here on. Thanks... PS.. I just read in man grep... "This is highly experimental and grep -P may warn of unimplemented features." ... I hope that doesn't mean unstable(?) ...
Mar 8, 2012 at 0:39 comment added Gilles 'SO- stop being evil' @Peter.O I understood “except [number]” to mean that there aren't other parts of the line of that form. But I edited my answer to show how to print only the digits, just in case.
Mar 8, 2012 at 0:38 history edited Gilles 'SO- stop being evil' CC BY-SA 3.0
show how to print only the digits between the brackets
Mar 8, 2012 at 0:06 comment added Peter.O All good, other than that he wants to "extract the number between brackets". I think "except [number]" means except [0-9]
Mar 7, 2012 at 23:29 history answered Gilles 'SO- stop being evil' CC BY-SA 3.0