With this extension you can extract numbers from a string which contains both text and number or extract text from a string which contains both text and number
Blocks:-
Demo:-
Download:-
Extractor.aix (5.3 KB)
Aia:-
Extractor.aia (6.0 KB)
Source Code:-
6 Likes
TIMAI2
January 23, 2022, 11:59am
2
If letters and numbers are mixed up, e.g. "F1a2r3a4z5" or "1Fa2r3a4z5"
getting the numbers adds a space between each number
getting the text doesn't
1 Like
Have you tested this?
If getting number adds space between each number then I will update my extension and remove that space
TIMAI2
January 23, 2022, 12:01pm
4
How would I know if I hadn't tested it ?
2 Likes
OK I will edit my code till use
replace all text your text
segment=" "
replacement=""
Faraz_Firoz:
OK I will edit my code
Why, it makes sense the way it is, see here:
TIMAI2
January 23, 2022, 12:22pm
7
@Johannes_Ai2
in which case the extension should split the letters with a space as well?
1 Like
Yes I have found error the error was I am replacing with a space in ExtractNumber so it is happening
I have fixed that issue
Extractor.aia (6.0 KB)
Extractor.aix (5.3 KB)
4 Likes
this can be done by RegEx extension
5 Likes
Now this extension is open source
2 Likes
Kevinkun
Split this topic
March 30, 2023, 12:23am
13
A post was split to a new topic: How can i extract an apk