Diysb Tools

撤销

这是一个基于浏览器的超级简单的应用程序,可以反向打印所有列表项。输入项可以用任意符号分隔,并且您还可以更改反向列表项的分隔符。

列表工具

什么是列表反转器?

使用此实用程序,您可以反转列表中项目的顺序。该实用程序首先将输入列表拆分成单个项目,然后从最后一个项目到第一个项目进行迭代,并在迭代过程中将每个项目打印到输出中。输入列表可以包含任何可以表示为文本数据的内容,包括数字、数值、字符串、单词、句子等。输入项分隔符也可以是正则表达式。例如,正则表达式 /[;,]/ 允许您使用逗号或分号分隔的项目。输入和输出列表项分隔符可以在选项中自定义。默认情况下,输入和输出列表均以逗号分隔。Listabulous!

输入列表
反转列表
工具选项
分离器模式
使用符号进行拆分
用字符分隔输入列表项。
使用正则表达式进行拆分
使用正则表达式分隔输入列表项。
项目分隔符
设置分隔符号或正则表达式。
输出列表选项
输出列表项分隔符。
撤销 示例

Reverse a List of Digits

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.

2, 9, 6; 3; 7. 4. 4. 2, 1; 4, 8. 4; 4. 8, 2, 5; 1; 7; 7. 0
2, 9, 6; 3; 7. 4. 4. 2, 1; 4, 8. 4; 4. 8, 2, 5; 1; 7; 7. 0
0; 7; 7; 1; 5; 2; 8; 4; 4; 8; 4; 1; 2; 4; 4; 7; 3; 6; 9; 2
0; 7; 7; 1; 5; 2; 8; 4; 4; 8; 4; 1; 2; 4; 4; 7; 3; 6; 9; 2
分离器模式
使用符号进行拆分
用字符分隔输入列表项。
使用正则表达式进行拆分
使用正则表达式分隔输入列表项。
项目分隔符
设置分隔符号或正则表达式。
输出列表选项
输出列表项分隔符。

Reverse a Column of Words

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.

argument pollution emphasis vehicle family property preference studio suggestion accident analyst permission reaction promotion quantity inspection chemistry conclusion confusion memory
argument pollution emphasis vehicle family property preference studio suggestion accident analyst permission reaction promotion quantity inspection chemistry conclusion confusion memory
memory confusion conclusion chemistry inspection quantity promotion reaction permission analyst accident suggestion studio preference property family vehicle emphasis pollution argument
memory confusion conclusion chemistry inspection quantity promotion reaction permission analyst accident suggestion studio preference property family vehicle emphasis pollution argument
分离器模式
使用符号进行拆分
用字符分隔输入列表项。
使用正则表达式进行拆分
使用正则表达式分隔输入列表项。
项目分隔符
设置分隔符号或正则表达式。
输出列表选项
输出列表项分隔符。

Reverse a Random List

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.

Hamburg-21334-Dhaka-Sunny-Managua-Rainy-Chongqing-95123-Oakland
Hamburg-21334-Dhaka-Sunny-Managua-Rainy-Chongqing-95123-Oakland
Oakland, 95123, Chongqing, Rainy, Managua, Sunny, Dhaka, 21334, Hamburg
Oakland, 95123, Chongqing, Rainy, Managua, Sunny, Dhaka, 21334, Hamburg
分离器模式
使用符号进行拆分
用字符分隔输入列表项。
使用正则表达式进行拆分
使用正则表达式分隔输入列表项。
项目分隔符
设置分隔符号或正则表达式。
输出列表选项
输出列表项分隔符。