How to remove everything after a word











up vote
1
down vote

favorite
1












How I can remove everything after domain.com/?



Example:



csa.domain.com/blsbls/lsads
asd.domain.com/blabla
bsa.domain.com/blsbls


I want to to remove everything after domain.com/ so my result will be:



csa.domain.com/
asd.domain.com/
bsa.domain.com/









share|improve this question
























  • Generally, you need a program that recognizes slashes to be separators, like how spaces are separators for words. Then, Ctrl-right arrow may jump you to the slash. (Then it's a matter of Shift-End, then Delete.)
    – TOOGAM
    Apr 28 '16 at 21:52















up vote
1
down vote

favorite
1












How I can remove everything after domain.com/?



Example:



csa.domain.com/blsbls/lsads
asd.domain.com/blabla
bsa.domain.com/blsbls


I want to to remove everything after domain.com/ so my result will be:



csa.domain.com/
asd.domain.com/
bsa.domain.com/









share|improve this question
























  • Generally, you need a program that recognizes slashes to be separators, like how spaces are separators for words. Then, Ctrl-right arrow may jump you to the slash. (Then it's a matter of Shift-End, then Delete.)
    – TOOGAM
    Apr 28 '16 at 21:52













up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





How I can remove everything after domain.com/?



Example:



csa.domain.com/blsbls/lsads
asd.domain.com/blabla
bsa.domain.com/blsbls


I want to to remove everything after domain.com/ so my result will be:



csa.domain.com/
asd.domain.com/
bsa.domain.com/









share|improve this question















How I can remove everything after domain.com/?



Example:



csa.domain.com/blsbls/lsads
asd.domain.com/blabla
bsa.domain.com/blsbls


I want to to remove everything after domain.com/ so my result will be:



csa.domain.com/
asd.domain.com/
bsa.domain.com/






notepad++






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 29 '16 at 8:43









DavidPostill

102k25216252




102k25216252










asked Apr 28 '16 at 21:49









John Matheu

613




613












  • Generally, you need a program that recognizes slashes to be separators, like how spaces are separators for words. Then, Ctrl-right arrow may jump you to the slash. (Then it's a matter of Shift-End, then Delete.)
    – TOOGAM
    Apr 28 '16 at 21:52


















  • Generally, you need a program that recognizes slashes to be separators, like how spaces are separators for words. Then, Ctrl-right arrow may jump you to the slash. (Then it's a matter of Shift-End, then Delete.)
    – TOOGAM
    Apr 28 '16 at 21:52
















Generally, you need a program that recognizes slashes to be separators, like how spaces are separators for words. Then, Ctrl-right arrow may jump you to the slash. (Then it's a matter of Shift-End, then Delete.)
– TOOGAM
Apr 28 '16 at 21:52




Generally, you need a program that recognizes slashes to be separators, like how spaces are separators for words. Then, Ctrl-right arrow may jump you to the slash. (Then it's a matter of Shift-End, then Delete.)
– TOOGAM
Apr 28 '16 at 21:52










2 Answers
2






active

oldest

votes

















up vote
0
down vote













I want to to remove everything after domain.com/




  • Menu "Search" > "Replace" (or Ctrl + H)


  • Set "Find what" to com.*$


  • Set "Replace with" to com


  • Enable "Regular expression"



  • Click "Replace All"



    enter image description here




Before:



csa.domain.com/blsbls/lsads
asd.domain.com/blabla
bsa.domain.com/blsbls


After:



csa.domain.com/
asd.domain.com/
bsa.domain.com/




Further reading




  • How to use regular expressions in Notepad++ (tutorial)

  • Notepad++: A guide to using regular expressions and extended search mode

  • Regular Expressions Tutorial

  • RegExr: Learn, Build, & Test RegEx

  • regex101: Online regex tester and debugger






share|improve this answer




























    up vote
    -1
    down vote













    If you dont have installed notepad try online text tool :



    http://www.text-filter.com/tools/remove-everything-after-slash/






    share|improve this answer



















    • 1




      What question are you answering?
      – Toto
      Jul 9 at 15:42











    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    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: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1071050%2fhow-to-remove-everything-after-a-word%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    I want to to remove everything after domain.com/




    • Menu "Search" > "Replace" (or Ctrl + H)


    • Set "Find what" to com.*$


    • Set "Replace with" to com


    • Enable "Regular expression"



    • Click "Replace All"



      enter image description here




    Before:



    csa.domain.com/blsbls/lsads
    asd.domain.com/blabla
    bsa.domain.com/blsbls


    After:



    csa.domain.com/
    asd.domain.com/
    bsa.domain.com/




    Further reading




    • How to use regular expressions in Notepad++ (tutorial)

    • Notepad++: A guide to using regular expressions and extended search mode

    • Regular Expressions Tutorial

    • RegExr: Learn, Build, & Test RegEx

    • regex101: Online regex tester and debugger






    share|improve this answer

























      up vote
      0
      down vote













      I want to to remove everything after domain.com/




      • Menu "Search" > "Replace" (or Ctrl + H)


      • Set "Find what" to com.*$


      • Set "Replace with" to com


      • Enable "Regular expression"



      • Click "Replace All"



        enter image description here




      Before:



      csa.domain.com/blsbls/lsads
      asd.domain.com/blabla
      bsa.domain.com/blsbls


      After:



      csa.domain.com/
      asd.domain.com/
      bsa.domain.com/




      Further reading




      • How to use regular expressions in Notepad++ (tutorial)

      • Notepad++: A guide to using regular expressions and extended search mode

      • Regular Expressions Tutorial

      • RegExr: Learn, Build, & Test RegEx

      • regex101: Online regex tester and debugger






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        I want to to remove everything after domain.com/




        • Menu "Search" > "Replace" (or Ctrl + H)


        • Set "Find what" to com.*$


        • Set "Replace with" to com


        • Enable "Regular expression"



        • Click "Replace All"



          enter image description here




        Before:



        csa.domain.com/blsbls/lsads
        asd.domain.com/blabla
        bsa.domain.com/blsbls


        After:



        csa.domain.com/
        asd.domain.com/
        bsa.domain.com/




        Further reading




        • How to use regular expressions in Notepad++ (tutorial)

        • Notepad++: A guide to using regular expressions and extended search mode

        • Regular Expressions Tutorial

        • RegExr: Learn, Build, & Test RegEx

        • regex101: Online regex tester and debugger






        share|improve this answer












        I want to to remove everything after domain.com/




        • Menu "Search" > "Replace" (or Ctrl + H)


        • Set "Find what" to com.*$


        • Set "Replace with" to com


        • Enable "Regular expression"



        • Click "Replace All"



          enter image description here




        Before:



        csa.domain.com/blsbls/lsads
        asd.domain.com/blabla
        bsa.domain.com/blsbls


        After:



        csa.domain.com/
        asd.domain.com/
        bsa.domain.com/




        Further reading




        • How to use regular expressions in Notepad++ (tutorial)

        • Notepad++: A guide to using regular expressions and extended search mode

        • Regular Expressions Tutorial

        • RegExr: Learn, Build, & Test RegEx

        • regex101: Online regex tester and debugger







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 29 '16 at 8:41









        DavidPostill

        102k25216252




        102k25216252
























            up vote
            -1
            down vote













            If you dont have installed notepad try online text tool :



            http://www.text-filter.com/tools/remove-everything-after-slash/






            share|improve this answer



















            • 1




              What question are you answering?
              – Toto
              Jul 9 at 15:42















            up vote
            -1
            down vote













            If you dont have installed notepad try online text tool :



            http://www.text-filter.com/tools/remove-everything-after-slash/






            share|improve this answer



















            • 1




              What question are you answering?
              – Toto
              Jul 9 at 15:42













            up vote
            -1
            down vote










            up vote
            -1
            down vote









            If you dont have installed notepad try online text tool :



            http://www.text-filter.com/tools/remove-everything-after-slash/






            share|improve this answer














            If you dont have installed notepad try online text tool :



            http://www.text-filter.com/tools/remove-everything-after-slash/







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jul 9 at 15:58

























            answered Jul 9 at 15:37









            Alisa Denis

            11




            11








            • 1




              What question are you answering?
              – Toto
              Jul 9 at 15:42














            • 1




              What question are you answering?
              – Toto
              Jul 9 at 15:42








            1




            1




            What question are you answering?
            – Toto
            Jul 9 at 15:42




            What question are you answering?
            – Toto
            Jul 9 at 15:42


















             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1071050%2fhow-to-remove-everything-after-a-word%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Terni

            A new problem with tex4ht and tikz

            Sun Ra