Community
    • Login

    need to edit text

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 45 Views
    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.
    • Joc BedenčičJ
      Joc Bedenčič
      last edited by

      #EXTINF:0, 0 - SLO 1 SD
      #EXTTV:Mpeg2;slv;
      udp://@232.2.1.1:5002

      #EXTINF:0, 2 - SLO 2 SD
      #EXTTV:Mpeg2;slv;
      udp://@232.2.1.2:5002

      I need to edit this TV playlist, to remove everything behind #EXTINF:0, and leave only channel names

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Joc Bedenčič
        last edited by

        @Joc-Bedenčič ,

        Based on my guess as to what you meant,
        FIND = (^#EXTINF:0,).*$
        REPLACE = $1
        SEARCH MODE = Regular Expression

        That gives the result,

        #EXTINF:0,
        #EXTTV:Mpeg2;slv;
        udp://@232.2.1.1:5002
        
        #EXTINF:0,
        #EXTTV:Mpeg2;slv;
        udp://@232.2.1.2:5002
        

        Because that’s my guess as to what you meant by “remove everything behind #EXTINFO:0,”

        If that isn’t what you wanted, you will want to give both “before” and “after” data (“only channel names” has no meaning to someone who doesn’t know the format)

        ----

        Useful References

        • Please Read Before Posting
        • Template for Search/Replace Questions
        • Formatting Forum Posts
        • Notepad++ Online User Manual: Searching/Regex
        • FAQ: Where to find other regular expressions (regex) documentation
        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors