GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Quick Question (https://gfy.com/showthread.php?t=495391)

Za Ha 07-23-2005 11:55 AM

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 07-23-2005 12:27 PM

search and replace in any text editor?

Za Ha 07-23-2005 12:29 PM

Quote:

Originally Posted by woj
search and replace in any text editor?

I cant flip the order using search and replace.

FuqALot 07-23-2005 12:39 PM

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.

High Plains Drifter 07-23-2005 12:40 PM

Print it out and hold it up to a mirror.

woj 07-23-2005 12:40 PM

Quote:

Originally Posted by skinnywussy
Print it out and hold it up to a mirror.

:1orglaugh

Doc911 07-23-2005 12:48 PM

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

psili 07-23-2005 12:54 PM

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.

Za Ha 07-23-2005 01:36 PM

Quote:

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 :winkwink:

jwerd 07-23-2005 01:41 PM

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

jwerd 07-23-2005 01:43 PM

Sorry, GFy screwed it up a bit.

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

try that

Za Ha 07-23-2005 01:51 PM

Thnx psili's method is very good atm.


All times are GMT -7. The time now is 02:42 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123