Remove characters and retain only numbers from string

but if we don't know the text? e.g. if it is a text box instead of list view?

Actually like that you can also use this block :
text_replace_all

maybe this is better

1 Like

that's amazing. so you can create a procedure with an input and then we can use do result with lots of set variable for all characters not numbers and then resulting that variable.
that solution that you putted now has a problem: there is not abc, is a b c d e, etc. so we need multiple blocks.

have you tried to make like this

Try this:

handles upper and lower case

2 Likes

Wow, that's really good but I still don't understand the logic

Intersting Discussion !

Tried it.

Which block you use for that, do you use (replacement block) ?

Something missing in your blocks (or something added)

image

Got it !! Tx !!

But there must be a way of RETAINING the numbers, using a NUMBER filter instead of REMOVING alphabets using a alphabet filter. Coz in case there is a special character ??
The list of combinations is endless. So instead of REMOVING THE UNWANTED, KEEP THE WANTED !

It is easier to avoid your data pollution upstream than to try to clean it up downstream.
Your data should have been set up as:

  • Cigarette (Rs)
  • 2000

This sample app shows how much easier this organization makes life for you ...

I am maintaining a record of daily expenses

Home Screen

Add Data

Add More Data

View Details

It was an after thought, in case there is a wrong entry or a double entry, and user desires to REMOVE a record, then the record shud get DELETED, and amount added to TOTAL shud also get reduced.

Yes, you could approach things the other ways around, instead of removing the letters, just keep the numbers (and/or any other characters you may want to include). Create a list of the numbers.

Here are the blocks (draggable) to do it with the numbers:

1 Like

can you share that project with us

Here are the blocks (draggable) !!

2 Likes

Please share the project with me :sob: :sneezing_face:

1 Like