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.

Input
2, 9, 6; 3; 7. 4. 4. 2, 1; 4, 8. 4; 4. 8, 2, 5; 1; 7; 7. 0
Output
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.

Input
argument
pollution
emphasis
vehicle
family
property
preference
studio
suggestion
accident
analyst
permission
reaction
promotion
quantity
inspection
chemistry
conclusion
confusion
memory
Output
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.

Input
Hamburg-21334-Dhaka-Sunny-Managua-Rainy-Chongqing-95123-Oakland
Output
Oakland, 95123, Chongqing, Rainy, Managua, Sunny, Dhaka, 21334, Hamburg
स्प्लिटर मोड
विभाजन के लिए प्रतीक का उपयोग करें
इनपुट सूची आइटम को किसी वर्ण से सीमांकित करें.
विभाजन के लिए रेगेक्स का उपयोग करें
नियमित अभिव्यक्ति के साथ इनपुट सूची आइटम को सीमांकित करें.
आइटम विभाजक
एक सीमांकक प्रतीक या नियमित अभिव्यक्ति सेट करें.
आउटपुट सूची विकल्प
आउटपुट सूची आइटम विभाजक.

सभी सूची टूल्स