Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    regex help with EDI files

    Help wanted · · · – – – · · ·
    2
    3
    732
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Lan Huynh
      Lan Huynh last edited by

      Need help with regex to replace a date sent on a DTP segment. Thanks in advance.

      FROM from file
      DTP472RD820180101-20180201
      DTP
      472D820180101

      TO
      DTP472D820180301
      DTP
      472D820180301

      Scott Sumner 1 Reply Last reply Reply Quote 0
      • Scott Sumner
        Scott Sumner @Lan Huynh last edited by

        @Lan-Huynh

        What’s with the erratic italicization in your data? Is there really * characters in there that are being “eaten” by this site? Hint: As you are composing, there is a preview window RIGHT THERE! Check it to make sure all is as intended before you hit submit.

        Lan Huynh 1 Reply Last reply Reply Quote 1
        • Lan Huynh
          Lan Huynh @Scott Sumner last edited by

          @Scott-Sumner

          Hi Scott,

          You are correct. Sorry, my first time posting. There are * characters missing

          Revision below

          FROM
          DTP*472*RD8*20180101-20180201
          DTP*472*D8*20180101

          TO
          DTP*472*D8*20180301
          DTP*472*D8*20180301

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors