Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/06/2019 in all areas

  1. Bah. Just place some jokes and you will get a lot of +'s . Not significant BTW you should like this alternative, based on simple String* funcs only #Include <Array.au3> Global $master = "Z", $text[5] = ["A", "B", "C", "D", $master], $s = "" _LetsGo("") $a = StringSplit(StringTrimRight($s, 1), "|", 2) _ArrayDisplay($a) Func _LetsGo($string) For $i = 0 to UBound($text)-1 If not StringInStr($string, $text[$i]) Then $tmp = $string & "," & $text[$i] If StringInStr($tmp , $master) and StringLen($tmp)>2 Then $s &= StringTrimLeft($tmp, 1) & "|" EndIf _LetsGo($tmp) EndIf Next EndFunc
    3 points
  2. Beta 0.4.0.0 of the UDF has been released!
    1 point
  3. Here, ASCII means ASCII, i.e. [0x00..0x7F] and not "Extended ASCII". What the StrngRegexp doc doesn't say is that in UCP mode [:print:] cover the whole range of printable codepoints of UCS2 charset (= Unicode BMP). Local $s For $i = 0x00 To 0x3FF ; put some low limit $s &= ChrW($i) Next $s = StringRegExpReplace($s, "(*UCP)[[:^print:]]", "") Local $a = StringToASCIIArray($s) For $c In $a $cw(Hex($c, 4) & @TAB & ">" & ChrW($c) & "<") Next Edit1: Other POSIX classes change when UCP is enabled, something which is not explicitely mentionned in our doc: [:space:] [:graph:] [:punct:] Edit2: It's noticeable that [:cntrl:] even in UCP mode doesn't cover the range of C1 control characters [0x80..0x9F] ∪ [0xAD]. That may have changed with more recent versions of PCRE1 and all PCRE2 versions. Edit3: ticket #3725 posted in Trac
    1 point
  4. No .... it will force the script to be run with Administration rights... Maybe reread my previous post which does explain why I proposed it?
    1 point
  5. There's probably a simpler pattern, but this seems to do what I think you want. The user can add spaces between each file format and extensions can be any length or include numbers e.g. *.pspimage , *.mp4 I should add 'you are welcome'
    1 point
×
×
  • Create New...