This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

replace char

Old posts that have not been replied to for several years.
Locked
a
asersan

replace char

Post by asersan »

hi

i have a little problem ... im using a xml parser to parse some news of a XML site but in the file i get:

http://www.sl-benfica.com/artigos/3122 > Fehér ficarás para sempre nos nossos corações

and i need something to replace some chars

like for example
é with é
ã with ãe
á with á

can someone help ?

tks
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

See lsearch and lreplace commands.
Once the game is over, the king and the pawn go back in the same box.
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

Actually, see the "regsub" or "string map" commands.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

I tought to mention the regexp.. but I didn't.. anyway, depends on how he got that line, as an list or as an string.
Once the game is over, the king and the pawn go back in the same box.
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

He still only wants to replace chars as he said, not list elements (ie. words).
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Umm.. right.. I should get some sleep. :mrgreen: :roll:
Once the game is over, the king and the pawn go back in the same box.
Locked