Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/07/2023 in all areas

  1. FYI, I wrote a function to handle this when I was previously working on the webdriver BiDi implementation. I just submitted this PR, which adds _WD_GetFreePort to wd_helper. Feel free to test and provide feedback. Also, do you think it would be good to have it default to a predefined range if the min/max values aren't supplied? Edit: This has been merged into the main branch and will be included in the next release.
    1 point
  2. Nice analysis ! Hmm I prefer told like this (parenthesis...) ... only if they're followed by (a whitespace char AND a non-whitespace char) OR (if the end of string is reached) Ha. As often I was a bit lazy and didn't take care of a possible trailing newline So there are 2 answers, keeping the lazy "+" $out = StringRegExpReplace($in, '(?<=\S)(\s+?)(?=\s\S|\z)', "") $out = StringRegExpReplace($in, '(*CR)(?<=\S)(\s+?)(?=\s\S|$)', "") But (\s+) is the best one indeed, I forgot the ability of the regex engine to look backwards - so the \s in the lookahead is not matched in the group
    1 point
  3. doudou

    AutoItObject UDF

    I don't know what's wrong with x64 version of AutoItObject as of 1.2.8.2, but 1.2.8.3 fork from AutoItMicro project works like a charm under 64 bit.
    1 point
  4. A simple solution is replacing "c:\windows\system32" with "c:\windows\sysnative". The 'Sysnative' folder in 64-bit Windows explained (Technical Article) : http://www.samlogic.net/articles/sysnative-folder-64-bit-windows.htm
    1 point
×
×
  • Create New...