Community
    • Login

    need to edit text

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 513 Views 2 Watching
    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 Offline
      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 Offline
        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors