0

我正在使用 appInventor 开发应用程序。如何用另一个文本字符串替换部分文本字符串。这应该很简单。如果我使用 Perl,我会这样做:

$my_str =~ s/abc/xyz/;

谢谢。

4

1 回答 1

2

we are talking about App Inventor...

you could use the replace all block

replace all

Returns a new text string obtained by replacing all occurrences of the substring with the replacement.

enter image description here

in case this is not what you are looking for, just take a look at the other text blocks

于 2012-11-15T21:14:41.053 回答