High scores ask for help on how to get the number 100 in a character group through a regular express

Updated on technology 2024-04-11
7 answers
  1. Anonymous users2024-02-07

    string s = "Beijing Tiananmen Square to the Great Hall of the People to the east, at the second intersection to the east";

    string str1 = ;

    string str = ',');

    for (int i = 0; i < i++)str[i] = , "[^\d.]*", "");

    foreach (string a in str)double i = , 0, ;Convert to an integer.

    foreach (string a in str)double i = , 1, ;Keep one decimal place.;

  2. Anonymous users2024-02-06

    A custom function that truncates the type of number in a string.

    create function

    no varchar(100)

    returns int

    as begin

    while patindex('%[^0-9]%',@no)>0begin

    set @no=stuff(@no,patindex('%[^0-9]%',@no),1,'')

    endreturn convert(int,@no)end

    As for how to format it, I believe you should be able to do it.

  3. Anonymous users2024-02-05

    (\d+)$

    Can. The brackets match the ending number.

  4. Anonymous users2024-02-04

    (?That's how it works, because in the matching character that you wrote, d only means one digit, and it can't show that it is a multi-digit, and adding a * or + can mean a multi-digit, and add another one? It's just that I add it habitually, to prevent greed, but there is no need to add it here either, because there will be no greed.

  5. Anonymous users2024-02-03

    ?<=d)[^d].+

    Well, positive assertions don't support repetition.

  6. Anonymous users2024-02-02

    Principle: When the nth digit needs to be matched, (number + non-number) n-1 time + number, the last number is the result.

    Extract the fourth digit (?:d+[^d]+)d+).3 = 4-1 of b

    Extract the second number: (?.)d+[^d]+)d+).1 = 2-1 for b

    If the above numeric extraction is a one-time match in one row, that. * b can be removed.

  7. Anonymous users2024-02-01

    import ;

    import ;

    public class test3 }} I looked at the example in the ** given upstairs.

    before writing it out. Appearance.

Related questions
5 answers2024-04-11

I use this for Nikon L3, and when I bought it, the machine + 520 card + camera bag = 1660 is cost-effective. >>>More

8 answers2024-04-11

Article 31 of the Measures for the Handling of Road Traffic Accidents has been repealed, which stipulates that the vehicle owner shall be responsible for the advance payment of traffic accidents, but with the implementation of the new Traffic Safety Law, the responsibility of the vehicle owner to be responsible for the advance payment has been abolished. There is no legal basis for the liability of car owners in road traffic accident personal injury compensation cases accepted after May 1, 2004. >>>More

17 answers2024-04-11

CPU AMD Athlon64 x2 7750 (Black Box) 440 Motherboard Gigabyte GA-MA78GM-S2H( 499 RAM Kingston 2GB DDR2 800 (Narrow Board) 120 HDD WD 500GB 7200 to 16MB (Serial GP) 380 >>>More

8 answers2024-04-11

A total of 55 bags were taken out, and if there were no defective products, the total weight of these 55 bags: 400 55 = 22000 grams. >>>More

22 answers2024-04-11

Symantec Antivirus Corporate is one of the best antiviruses in the world, this is the enterprise version, which can bring you lower system resource usage and more reliable performance compared to the professional and standard versions! I hope you enjoy it! Comprehensive virus protection for enterprise-wide workstations and network servers - the world's only virus protection solution that updates the virus pattern much faster than the virus spreads (Taiwan abbreviation - Symantec Enterprise Antivirus Portfolio B - Multi-level antivirus convenience authorization and control mechanism including workstations and server hosts) With the emergence of more and more transmissible and destructive viruses, the need for virus protection within the enterprise has become an important core business need. >>>More