Insert a line break before a numeric field or before an alphanumeric field that is just after a numeric field

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have this line



word1 word2 1234 4567 word3 8901 word4 word5 2541 5142 word5


I want to split this line in order to insert a line break before a numeric field or before an alphanumeric field that is just after a numeric field, so the output would be:



word1 word2
1234
4567
word5


All alphanumeric fields begin with letters









share

























    up vote
    0
    down vote

    favorite












    I have this line



    word1 word2 1234 4567 word3 8901 word4 word5 2541 5142 word5


    I want to split this line in order to insert a line break before a numeric field or before an alphanumeric field that is just after a numeric field, so the output would be:



    word1 word2
    1234
    4567
    word5


    All alphanumeric fields begin with letters









    share























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have this line



      word1 word2 1234 4567 word3 8901 word4 word5 2541 5142 word5


      I want to split this line in order to insert a line break before a numeric field or before an alphanumeric field that is just after a numeric field, so the output would be:



      word1 word2
      1234
      4567
      word5


      All alphanumeric fields begin with letters









      share













      I have this line



      word1 word2 1234 4567 word3 8901 word4 word5 2541 5142 word5


      I want to split this line in order to insert a line break before a numeric field or before an alphanumeric field that is just after a numeric field, so the output would be:



      word1 word2
      1234
      4567
      word5


      All alphanumeric fields begin with letters







      awk sed alphanumeric





      share












      share










      share



      share










      asked 7 mins ago









      Emilio Galarraga

      32629




      32629

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478543%2finsert-a-line-break-before-a-numeric-field-or-before-an-alphanumeric-field-that%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478543%2finsert-a-line-break-before-a-numeric-field-or-before-an-alphanumeric-field-that%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?