1 Reply Latest reply on Jan 23, 2008 3:17 PM by Newsgroup_User

    Backreferences with Regex

    boybles
      In the following Regex:
      /.+?/(?<num1st>\d+)/(?<num2nd>\d+)}_{(?<name>\w+)}_{(?<date>[\d\-]+)}_{(?<filename>.*)\.tx t
      How can I use the backreferences (ie. num1st,num2nd,etc) with REFind so that I can extract the values from a string like the following:
      /face/43/6}_{distribution}_{01-06-2008}_{5.txt
      and get the values:
      43
      6
      distribution
      01-06-2008
      5
      Thanks,
      Tony