Strip off required strings inside Quotes

Strip off required strings inside Quotes

4
NewbieNewbie
4

    Oct 04, 2005#1

    I am trying to do the following

    Source Sample

    Code: Select all

    "Due Date of first Instalment must be earlier than Due Date of second Instalment
    Precondition: X.PRM.INST2DUE is displayed
    X.PRM.INST1DUE < X.PRM.INST2DUE"
    "Due Date of second Instalment must be earlier than Due Date of third Instalment
    Precondition: X.PRM.INST3DUE is displayed
    X.PRM.INST2DUE < X.PRM.INST3DUE"
    
    Required End Result

    Code: Select all

    "X.PRM.INST2DUE
    X.PRM.INST1DUE
    X.PRM.INST2DUE"
    "X.PRM.INST3DUE
    X.PRM.INST2DUE
    X.PRM.INST3DUE"
    
    Any help would be greatly appreciated. Thank you in advance.
    Sanjay

    6,675585
    Grand MasterGrand Master
    6,675585

      Oct 05, 2005#2

      For your example, this regular expression in UltraEdit style (see Advanced - Configuration - Find - Unix style Regular Expressions) will do it:

      Find What: "*^p*^(X.PRM.[A-Z0-9]+^)*^p^(X.PRM.[A-Z0-9]+^)*^(X.PRM.[A-Z0-9]+^)"
      Replace With: "^1^p^2^p^3"
      Best regards from an UC/UE/UES for Windows user from Austria

      4
      NewbieNewbie
      4

        Oct 06, 2005#3

        Worked well.

        Thanks a lot Mofi.

        Sanjay