种类
按指定顺序对列表项进行排序
这是一个基于浏览器的超级简单的应用程序,可以反向打印所有列表项。输入项可以用任意符号分隔,并且您还可以更改反向列表项的分隔符。
使用此实用程序,您可以反转列表中项目的顺序。该实用程序首先将输入列表拆分成单个项目,然后从最后一个项目到第一个项目进行迭代,并在迭代过程中将每个项目打印到输出中。输入列表可以包含任何可以表示为文本数据的内容,包括数字、数值、字符串、单词、句子等。输入项分隔符也可以是正则表达式。例如,正则表达式 /[;,]/ 允许您使用逗号或分号分隔的项目。输入和输出列表项分隔符可以在选项中自定义。默认情况下,输入和输出列表均以逗号分隔。Listabulous!
In this example, we load a list of digits in the input. The digits are separated by a mix of dot, comma, and semicolon characters, so we use the regular expression split mode and enter a regular expression that matches all these characters as the input item separator. In the output, we get a reversed list of digits that all use the semicolon as a separator.
This example reverses a column of twenty three-syllable nouns and prints all the words from the bottom to top. To separate the list items, it uses the \n character as input item separator, which means that each item is on its own line.
In this example, the list elements are random cities, zip codes, and weather conditions. To reverse list elements, we first need to identify them and separate them apart. The input list incorrectly uses the dash symbol to separate the elements but the output list fixes this and uses commas.