die ersten x Zeichen für Vergleich ignorieren

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dirkf80
    Visitor
    • Sep 2018
    • 3

    die ersten x Zeichen für Vergleich ignorieren

    Hallo,

    wie schaffe ich es, in BC4 die ersten Zeichen (z.b. die ersten 3) aus einem Vergleich rauszuhalten und nur den Rest dahinter zu vergleichen?

    Danke.
  • Aaron
    Team Scooter
    • Oct 2007
    • 15997

    #2
    Hello,

    You can define a File Format, and create a new Grammar element for the first 3, and then mark that grammar element as Unimportant.
    http://www.scootersoftware.com/suppo..._unimportantv3

    ======

    Hallo,

    Du kannst ein Dateiformat definieren und ein neues Grammatikelement für die ersten 3 Stellen erstellen, und dieses Grammatikelement dann als "Unwichtig" markieren.
    http://www.scootersoftware.com/suppo..._unimportantv3
    Last edited by Gunnar; 18-Sep-2018, 02:30 AM. Reason: ENG->GER translation
    Aaron P Scooter Software

    Comment

    • dirkf80
      Visitor
      • Sep 2018
      • 3

      #3
      Hi,

      thanks for answering.
      This works quite good for the 3-mark numbers, but wich phrase do I have to use to ignore also the numbers with 2 marks? (see the pic)
      Attached Files

      Comment

      • Chris
        Team Scooter
        • Oct 2007
        • 5538

        #4
        Use the regular expression: ^\d+

        ^ - match on beginning of line
        \d - match on a decimal character
        + - match on one or more of the preceding character

        The regular expression will match on any number of decimal (0-9) characters at the beginning of a line.
        Chris K Scooter Software

        Comment

        • dirkf80
          Visitor
          • Sep 2018
          • 3

          #5
          This is it, thank you sooooo much!!!!

          Comment

          Working...