[FREE] StringFunctions Extension

New block update!

blocks (63)

Substrings
Returns a list of all the sub-strings of a string - text of a specific length - length.
Example: text = banana | length = 2 returns [ba, an, na, an, na].

I have updated the first post. You can download the updated extension from there.

2 Likes

Maybe the String.format() method.

1 Like

Ok, will try!

@Pythony Very Good Carry on making good extensions :smiling_face_with_three_hearts: :smiling_face_with_three_hearts: :smiling_face_with_three_hearts:

Thank you!

Ya!

1 Like

Can i use it for set maximum letter in a text
Example :- if set 10 (max) then it give result abcdefghij…

How to determine if he is using emojis. Great extension by the way :clap:

Thank you!

In the text?

@Moin_khan

You can use the substrings block to get a list of substrings of length 10 and then select the first item in the list.

Good set of tools!
I have one suggestion to add. The “ChangeCase” block: with these options:

Sentence case.
Title Case.
UPPERCASE.
lowercase.
dUmB cAsE. :laughing:

2 Likes

@Italo

Thanks for the suggestion! I have added a new block!

2 Likes

New block update!

blocks (65)

ChangeCase
Changes the case of a string - ‘text’ according to the case given - ‘toCase’.
The valid cases are - upper case, lower case, sentence case, title case and toggle case.
If you enter a wrong case, an error will occur.
Example:

  • text = hello everybody | toCase = upper case returns HELLO EVERYBODY.
  • text = HELLO EVERYBODY | toCase = lower case returns hello everybody.
  • text = hello everybody. how are you? | toCase = sentence case returns Hello everybody. How are you?.
  • text = hello everybody | toCase = title case returns Hello Everybody.
  • text = hello everybody | toCase = toggle case returns randomly capitalized and lowered string like heLlO EveRyboDY.

I have updated the first post. You can download the updated extension from there.

5 Likes

That exists in all App Inventor based platforms/builders in the text category of blocks.

Good thing you called it toggle_case instead of dumb_case! :rofl:

2 Likes

Only uppercase and lowercase options are there.

Yeah :joy: !!!

1 Like

ChangeCase block ERROR

“sentence case” do “title case”

any suggestions?
(sorry my english)

how to remove two or more spaces into one space in text?

thank you really , you are great