Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

moxol

@moxol
About
Posts
10
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • remove parenthese from function like string
    M moxol

    Yes, it can be done from Find and Replace in two steps. Find: __\w+?\(" Replace: " Find: "\) Replace: "

    Regular Expressions c++ hardware beta-testing help

  • remove parenthese from function like string
    M moxol

    Regex that I gave you will work whatever the string inside parentheses is. It focuses on removing the __X(" and "). You can use this one for any __X

    string newExp = Regex.Replace(Regex.Replace(oldExp, @"__\w+?\(""", @""""), @"""\)", @"""");

    Regular Expressions c++ hardware beta-testing help

  • remove parenthese from function like string
    M moxol

    Does this simple Regex.Replace work for you?

    string oldExp = @"__X(""(whatever1)"") alpha __X(""whatever2"") beta";
    string newExp = Regex.Replace(Regex.Replace(oldExp, @"__X\(""", @""""), @"""\)", @"""");

    Regular Expressions c++ hardware beta-testing help

  • Last occurence of a word
    M moxol

    I have this text:

                            [18F-FMISO](https://www.sukl.eu/modules/medication/detail.php?kod=0242816 "Detail of medicinal product  18F-FMISO, 1-8GBQ INJ SOL 1GBQ")
    

    I need REGEX that will return word between the last occurence of the </span> and </a>. That word in this case would be 18F-FMISO. How to do that?

    Regular Expressions php regex tutorial question

  • Async web request
    M moxol

    I have this simple async web request code:

    class AsyncResponse
    {
    public AsyncResponse()
    {
    test2();
    Console.ReadKey();
    }

        public void test2()
        {
      
            for (int i = 0; i < 100; i++)
            {
                string url = "https//www.google.com";
    
                HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
                request.BeginGetResponse(new AsyncCallback(FinishWebRequest), request);
            }
            
        }
    
        private void FinishWebRequest(IAsyncResult result)
        {       
                HttpWebResponse response = (result.AsyncState as HttpWebRequest).EndGetResponse(result) as HttpWebResponse;
    
                Console.WriteLine("Finished");
        }
    

    }

    I only got on console two "Finished" lines, meaning FinishWebRequest didn't get finished more then 2 times, but I have 100 requests. What is the issue?

    C# question com help

  • Regex before match
    M moxol

    Yes, I think

    \w*bad boys\w*

    will do it. It's MySQL Regex expression, and it seems that it works for both Latin and non-Latin characters.

    Regular Expressions regex help question

  • Regex before match
    M moxol

    I can't place [A-Za-z] since there will be also a non-Latin characters. It has to be .+

    Regular Expressions regex help question

  • Regex before match
    M moxol

    If I have string

    1213 494 4 toobad boys 1234 4444

    I want to match "bad boys" and everything before and after bad boys until word boundary \b. Something like this

    "\\b.+?bad boys.+?\\b"

    This returns

    1213 494 4 toobad boys

    and I want it to match "toobad boys" I know that the problem is "\\b.+?bad" which matches everything up to "bad boys", but instead it has to match everything before "bad boys" until word boundary \b. Help?

    Regular Expressions regex help question

  • TLS 1.3 on Windows Vista
    M moxol

    Vista is on customer's computer, I can't change that. I managed to install TLS 1.1 and TLS 1.2 using this guide Enable TLS 1.1/1.2 on Windows Vista | JohnHaller.com[^] but no TLS 1.3. I found a method to install .NET framework 4.8 on Vista, but not yet tried. Then it would be possible to use in app TLS 1.3. [Tutorial] How to install .Net Framework 4.8 on Windows Vista - Windows Vista - MSFN[^] If that doesn't work, only remaining option is to use third-party library like libcurl as suggested.

    C# csharp question dotnet security help

  • TLS 1.3 on Windows Vista
    M moxol

    I have a C# app in .NET framework 4.6.1 where it uses WebClient.DownloadString(url) to download content from a url that uses TLS 1.3 and it throws exception because app is intended for a use on Windows Vista that doesn't have TLS 1.3 .NET framework 4.8 can't be installed on Vista. How can I solve this problem so that app can work on Vista?

    C# csharp question dotnet security help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups