8 Replies Latest reply on Feb 14, 2014 12:43 AM by Peter Kahrel

    grep to format numbers in [ ]

    eric2013 Level 1

      hello, I have citations in text which appear in such pattern as [1] or [1-3] or [1, 3-5, 4, 7-10]. I want to use blue color for the numbers in the pattern but everything (, or -) else remain black. I use this grep ((?<=[\[]))([[:digit:]]+(,\s|-))*[[:digit:]]+  which gives me blue color for every thing. How can I just blue color the numbers?

       

      Thank you.