Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Advanced code search and replacement
Old 11-24-2008, 05:12 PM Advanced code search and replacement
Junior Talker

Posts: 4
Trades: 0
Hi,

I would like to know if there is a program that can find code and replace it, in a more advanced way than dreamweaver, notepad++, word etc.

The first thing I would like to do with it is edit a snippet of code. It is the code for a combo box for selecting nationality ( in spanish). I want the 'value' to be the same as the name of the country. So if 'Argentina' is selected, the value is also 'Argentina'. RIght now the values are abreviated forms of the country's. Heres a sample:
<option value="AF">Afganistán</option>

I would like a way of going down the list and changing everything between =' and the next ' (in this case 'AF', and replacing it with whatver comes between the first > and the first < (in this case afganistán.

THanks in advance for any help.
dnewton is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-24-2008, 06:17 PM Re: Advanced code search and replacement
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,520
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
regular expressions in something like EditPadPro or PowerGrep might be able to, it's certainly beyond the DW regular expression F&R.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-25-2008, 01:22 PM Re: Advanced code search and replacement
Junior Talker

Posts: 4
Trades: 0
Chrishirst - Thanks, I'll check them out.
dnewton is offline
Reply With Quote
View Public Profile
 
Old 11-25-2008, 11:53 PM Re: Advanced code search and replacement
Experienced Talker

Posts: 32
Name: Dan
Location: New Zealand
Trades: 0
Use PsPad, it support Regex for search and replace:
http://www.pspad.com/en/download.php
__________________

Please login or register to view this content. Registration is FREE
/ PHP Web Development and Design Services

Please login or register to view this content. Registration is FREE
Awesome new Facebook app
Rumadon is offline
Reply With Quote
View Public Profile Visit Rumadon's homepage!
 
Old 11-27-2008, 07:57 PM Re: Advanced code search and replacement
Junior Talker

Posts: 4
Trades: 0
Thanks alot rumadon.
dnewton is offline
Reply With Quote
View Public Profile
 
Old 12-01-2008, 02:11 AM Re: Advanced code search and replacement
Skilled Talker

Posts: 56
Name: strauss
Trades: 0
Thanks for share the link. PSPad is a good programming editor for Windows.
__________________
I am a satisfied customer of

Please login or register to view this content. Registration is FREE
strauss is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Advanced code search and replacement
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.64608 seconds with 12 queries