Replace the 0 individually, not in 20, 50, 120...

This forum is for all Flare issues not related to any of the other categories.
Post Reply
Lucia
Propeller Head
Posts: 58
Joined: Mon Oct 27, 2008 6:22 am
Location: Blumenau SC Brazil

Replace the 0 individually, not in 20, 50, 120...

Post by Lucia »

I'm working in a Project where I have several tables with numerical references that I must replace with text. One of these numbers I need to replace is 0, where I need the word "Texto". However, I have many other numbers where 0 appears, such as 20, 50, 120, and and don't want to replace the 0 in these numbers.
Is there a way to replace only the 0, not the 0 in the 20, 50, etc.?
You do not have the required permissions to view the files attached to this post.
Lucia
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Replace the 0 individually, not in 20, 50, 120...

Post by NorthEast »

One solution could be to do a find and replace in the source code.

If you look at the topic in text mode, the zeros might look something like <td>0</td>.
So, you might be able search for >0 and replace with >Texto ; i.e. find only zeros that are at the start of a tag.

In the find and replace pane, you'd also need to need to tick 'Find in source code' option.
Lucia
Propeller Head
Posts: 58
Joined: Mon Oct 27, 2008 6:22 am
Location: Blumenau SC Brazil

Re: Replace the 0 individually, not in 20, 50, 120...

Post by Lucia »

Thank you very much :D , I don't know why didn't I think of this :(, I have used replace in source code many times :!:
Lucia
doc_guy
Propellus Maximus
Posts: 1979
Joined: Tue Nov 28, 2006 11:18 am
Location: Crossroads of the West
Contact:

Re: Replace the 0 individually, not in 20, 50, 120...

Post by doc_guy »

Boa sorte, Lucia! Estamos aqui se vc precisar de ajuda novamente. :)

(Sorry, I don't get to use my Portuguese very often.)
Paul Pehrson
My Blog

Image
Lucia
Propeller Head
Posts: 58
Joined: Mon Oct 27, 2008 6:22 am
Location: Blumenau SC Brazil

Re: Replace the 0 individually, not in 20, 50, 120...

Post by Lucia »

The fact you speak Portuguese surprises me... Specially the abbreviation for "você"...
Lucia
doc_guy
Propellus Maximus
Posts: 1979
Joined: Tue Nov 28, 2006 11:18 am
Location: Crossroads of the West
Contact:

Re: Replace the 0 individually, not in 20, 50, 120...

Post by doc_guy »

I abbreviated "você" for two reasons: First, I only have US English enabled on my keyboard right now, and second because I wanted it to not look like I just generated it from a computer. By using the abbreviation, you'd know that I hadn't just Googled the Portuguese translation. :)

I lived in São Paulo from 97-99, which is how I learned Portuguese, because it isn't taught in any school around here that I know of. :)
Paul Pehrson
My Blog

Image
Lucia
Propeller Head
Posts: 58
Joined: Mon Oct 27, 2008 6:22 am
Location: Blumenau SC Brazil

Re: Replace the 0 individually, not in 20, 50, 120...

Post by Lucia »

Que legal!
Lucia
Post Reply