Quick Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Za Ha
    Confirmed User
    • Oct 2001
    • 5112

    #1

    Quick Question

    If i have:

    url@@description (where the @@ is a seperator)
    can i change it to description@@url with some kind program or with excel or soemthing?

    Thanx
  • woj
    <&(©¿©)&>
    • Jul 2002
    • 47880

    #2
    search and replace in any text editor?
    Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
    Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
    Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

    Comment

    • Za Ha
      Confirmed User
      • Oct 2001
      • 5112

      #3
      Originally posted by woj
      search and replace in any text editor?
      I cant flip the order using search and replace.

      Comment

      • FuqALot
        Confirmed User
        • Dec 2001
        • 3817

        #4
        email me the text file i do it for you for free, have programs for this, and email it. [email protected]
        dont worry.. im not in adult so wont use your file.

        Comment

        • High Plains Drifter
          Confirmed User
          • Jun 2005
          • 2341

          #5
          Print it out and hold it up to a mirror.

          Comment

          • woj
            <&(©¿©)&>
            • Jul 2002
            • 47880

            #6
            Originally posted by skinnywussy
            Print it out and hold it up to a mirror.
            Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
            Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
            Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

            Comment

            • Doc911
              Confirmed User
              • Feb 2004
              • 3695

              #7
              just write a php script to do it. If you don't know how I'll write it for 10 bucks


              For PHP/MySQL scripts ICQ 161480555 or email [email protected]

              Comment

              • psili
                Confirmed User
                • Apr 2003
                • 5526

                #8
                find a text editor with regular expressions, then do a search and replace to something like:

                find: (.*);(.*)
                -- where ";" is the separator
                replace \2;\1

                Excel, you could do something like:

                paste everything in column "a".
                hilight column a, then go to "data" -> text to columns -> delimited and then choose your delimeter
                in like column g you could combine back the values:
                in column g: =concatenate(c1 & ";" & b1)
                then use the fill down function in the g column.

                dream weaver, many html editors, have regex expression handling to do this for you.
                Your post count means nothing.

                Comment

                • Za Ha
                  Confirmed User
                  • Oct 2001
                  • 5112

                  #9
                  Originally posted by psili
                  find a text editor with regular expressions, then do a search and replace to something like:

                  find: (.*);(.*)
                  -- where ";" is the separator
                  replace \2;\1

                  Excel, you could do something like:

                  paste everything in column "a".
                  hilight column a, then go to "data" -> text to columns -> delimited and then choose your delimeter
                  in like column g you could combine back the values:
                  in column g: =concatenate(c1 & ";" & b1)
                  then use the fill down function in the g column.

                  dream weaver, many html editors, have regex expression handling to do this for you.
                  You are a fuckin genius

                  GFY is the best place to get advice on everything!!

                  This worked almost as well as the mirror trick

                  Comment

                  • jwerd
                    Confirmed User
                    • Jun 2003
                    • 1953

                    #10
                    I may not understand this but off the top of my head this would work (incase you want to do it in php ever):

                    PHP Code:
                    // Assuming $buffer has the contents of your file...
                    
                    $exp = explode("@@", $buffer); // Pack this into an array...
                    
                    // By default, $exp[0] would be the first part...
                    
                    // So instead we just use $exp[1] first... :)
                    
                    echo $exp[1].$exp[0]; 
                    
                    Quicker than the mirror trick, too... and doesn't waste paper, LOL
                    Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com

                    Comment

                    • jwerd
                      Confirmed User
                      • Jun 2003
                      • 1953

                      #11
                      Sorry, GFy screwed it up a bit.

                      echo $exp [ 1 ] . $exp [ 0 ];

                      try that
                      Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com

                      Comment

                      • Za Ha
                        Confirmed User
                        • Oct 2001
                        • 5112

                        #12
                        Thnx psili's method is very good atm.

                        Comment

                        Working...