• Login
Community
  • Login

Adding url

Scheduled Pinned Locked Moved General Discussion
6 Posts 3 Posters 3.7k 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.
  • F
    Frank Maximchuk
    last edited by May 6, 2016, 10:34 PM

    I need to a url in front of 10k names. I can’t figure it out.

    1 Reply Last reply Reply Quote 0
    • D
      dail
      last edited by May 6, 2016, 10:41 PM

      Since you provided no context about the problem at all I doubt anyone else will be able to figure it out either. ;)

      F 1 Reply Last reply May 7, 2016, 12:09 AM Reply Quote 0
      • F
        Frank Maximchuk @dail
        last edited by May 7, 2016, 12:09 AM

        @dail
        add http://google.com/ (different names)

        1 Reply Last reply Reply Quote 0
        • S
          Scott Sumner
          last edited by May 7, 2016, 11:46 AM

          If the existing text is one per line in your file, and it is the first or only thing on the line, it is fairly easy:

          Do a search in regular expression mode for ^
          And replace with your desired text

          If your data is not this simple, then you really need to provide more before someone can give you decent help.

          F 1 Reply Last reply May 7, 2016, 5:59 PM Reply Quote 0
          • F
            Frank Maximchuk @Scott Sumner
            last edited by May 7, 2016, 5:59 PM

            @Scott-Sumner
            I guess I’m not explaining this well. I apologizes.
            Lets say I have 10 thousand names and I want to add http://google.com/ in front of every one of them.
            Like:
            http://google.com/johnjones
            http://google.com/bobjones
            http://google.com/jackjones

            1 Reply Last reply Reply Quote 0
            • S
              Scott Sumner
              last edited by May 8, 2016, 12:10 PM

              So that’s very straightforward according to my previous post. Invoke the Find Dialog box (Search menu, choose Find…). With your editing cursor at the top of your file, activate the Replace tab in the Find dialog box. In the Find What Field, use the single character ^ (which means roughly search for beginning of line). In the Replace with Field, use http://google.com/ . Make sure the Search Mode option is set for Regular Expression and that the Direction choice is Down. Press the Replace All button.

              1 Reply Last reply Reply Quote 0
              4 out of 6
              • First post
                4/6
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors