Get all Chinese characters in a large paragraph of text and go back to the

Source: Internet
Author: User

The main purpose is to save some overhead when loading all Chinese characters freetype.

1. First, all Java, JSON, etc. containing Chinese characters are pasted into one text.

2. In the text, full-text search, open the regular, the condition is: [^\ a-\ calls]+

3. Replace any part of the search results with the ""

4. Make the remaining Chinese characters simple with the following code

Importjava.util.ArrayList;/*** Created by Xirtam on 15/6/29.*/ Public classTest { Public Static void Main (string[] args) {String s  = "Earth lighter flashlight soap pot rubbing board pen flower screwdriver cucumber apple rice oil chocolate cake corn salt Ladies men's scarf hat underwear socks Belt tie mobile computer keyboard mouse console camera router printer air conditioning refrigerator washing machine water heater Microwave TV vacuum cleaner gas stove Coal petroleum iron ore wood steel gold Bitcoin uranium enrichment car airplane cruise Villa Swimming Pool Playground Prairie Commercial Street warehouse administrator charge the storage fee by the total value of the commodity every day the little girl has a new price every day. Banker Please save enough cash flow to pay tax programmer my girlfriend often carries me to buy the battery exactly why is it? Game author Press and hold buy or sell button to drag on screen to buy or sell beauty two days before encountering a It's funny how a programmer says he's got a girlfriend. Fishermen fresh fish to buy it? Teachers do not study hard in the future will not be able to get a job without a girlfriend female clerk as long as can change this poor life for me to do anything can be a woman scholar peace will erupt war this is human nature that boss has cucumber sell? The warehouse administrator will be charged the total value of the inventory per day. Game author Press and hold the buy or sell button to drag on the screen can buy or sell the black clothes people tomorrow would increase the price of black people tomorrow will reduce the warehouse there is no need to pay the custody of the hospital hospital can membership card all commodity buy price discount merchandise Welcome to buy a new inventory warehouse Business Opportunities Treasure Mystery items have special function asset blank note transfer where do you want to go position you found a money you found a first you found a day away from the end of the sky a page it's already the first page. The next page is already the last page. What do I do? The price of a commodity is changed every day. Cheap to buy high-priced selling is the criterion of business note some Strange people occasionally come to sell some strange things note official version of the game Support archive Welcome to purchase the official version of the game app your support is our efforts to the power of gold coins are not enough money still want to buy things over the day a day passed please pay attention to the price changes of the goods in a timely manner to change the sale strategy. We hope that this feature is being A customer bought a first-time buy. Warehouse administrator will charge the value of the inventory goods per day as a custodian fee for the storage of the total value of the warehouse manager charge of the storage cost of marriage happiness Xiao Ming's long-awaited goddess finally promised to marry Xiao Ming and his wife had a happy life on earth life of human beings and all kinds of animals Rich resources of the Moon and the moon without native life is the majority of people living in the earth and the Earth's animals and plants Xiao Ming is a general graduate of the three-stream University general professional so in the process of looking for a job often frustrated in order to not let parents worry Xiao Ming decided to do a little business to feed their stories from here you destroy all the robot You woke up and all this was just a dream you walked out the door and saw a lot of robots on the street.Cloudy rain snow hail wind buy sell growth decline upgrade no item previous next page show story timer display text data buy sell personal Mystery Item left button Money game number of people used to count start plot time the second day of price change price change the second day of the price changes prices randomly to rise a few flat a few down a few random which up which fall Which flat random increase decreases the price calculation second Zenith ministry information time speed every 10 days Warehouse storage fee Start Plot callback add a plot add animation two row hide left button two row hide previous next small note talk forecast up click Buy Gold less click buy Sell page transfer purchase page Click Moon Click buy Gold less Buy event special item secret Silver Click to sell "; Char[] chars =S.tochararray (); ArrayList<Character> result =NewArraylist<character>();  for(Charc:chars) {            if(!Result.contains (c))            {Result.add (c); }        }         for(CharC:result)        {System.out.print (c); } System.out.println (""); System.out.println ("The total number of Chinese is:" +result.size ()); }}

The console will output all the required Chinese and go heavy.

Earth Lighters Flashlight soap pot rubbing board pen flowers screwdriver cucumber apple rice oil chocolate cake jade salt Women men's scarf hat Inner Sox waist lead brain Keyboard mouse game phase router printing air conditioning refrigerator washing hot water microwave oven view dust gas stove coal iron ore steel gold Bitcoin enriched vehicle flywheel Villa Pool Playground Prairie Commercial Street warehouse manager Daily point of deposit value There will be a new price for the baby. Bankers please be sufficient to pay for the tax process. My friend is always on the back for what? Author live in or sell button drag on screen to buy beauty in bulk the first two met a man who actually said he was funny. Do you want a fisherman's fish? Teachers do not learn the future on the exam big job No shop can only change this poor life to do peace long war human nature that antique Some things to see after the black-and-white rise and fall into the hospital card in the Welcome to the selection of the Treasure fetish merit Asset White Paper transfer where you position your money the end of the page is the most dry low-high criteria strange occasional official version of the document should try to finish the attention and more sales strategy to look forward to Kaixie lock repair Star customers go for the first percent of marriage happiness wish to marry from this wife full of various rich sources Extensive month soil Life Department plant name of the general session of the three dedicated repeatedly frustrated let parents take care of the story began to eliminate the weapons to save the world suddenly wake-up cut dream door Many sunny rain snow hail wind growth upgrade display meter text data left drama two with a few drops of the top information speed 10 back to draw row hidden forecast hit surface The total number is:446

Get all Chinese characters in a large paragraph of text and go back to the

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.