Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/29/2015 in all areas

  1. guinness

    RegEx course

    In the process of doing this course >> http://campus.codeschool.com/courses/breaking-the-ice-with-regular-expressions/
    1 point
  2. mikell

    Thousand Separator

    Yes, this is a typical exercise for regex I used it when learning the \G anchor $sInput = "1234567890.1234" $sOutput = StringRegExpReplace($sInput, '\G(\d+?)(?=(\d{3})+(\D|$))', '$1,') MsgBox(0, "", $sInput & @crlf & $sOutput)
    1 point
  3. I have given up thinking about this and started writing all my single (EOL) statements using lower case without full stops - like in a list. If it requires more than one sentence, then I would probably create a comment block and write normal English. Func _OverflowDetect($sOperator, $iOperand_1, $iOperand_2) If Not StringRegExp($sOperator, '\A\s*[\+\-\*]\s*\z') Then Return SetError(1) ; operator not recognized If Not StringInStr(VarGetType($iOperand_1), 'Int') Then Return SetError(2) ; meaningless request If Not StringInStr(VarGetType($iOperand_2), 'Int') Then Return SetError(3) ; ditto ; execute the expression Local $iExecute = Execute($iOperand_1 & $sOperator & $iOperand_2) ; execute the expression with the operands converted to doubles Local $fCompare = Execute('Number(' & $iOperand_1 & ', 3)' & $sOperator & 'Number(' & $iOperand_2 & ', 3)') ; the results should be approximately equal Return StringFormat('%.15e', $iExecute) <> StringFormat('%.15e', $fCompare) EndFunc
    1 point
  4. I'm not try build 1.3.4 yet, but in previous version all my custom abbreviations working great.
    1 point
  5. First of all edit au3.abbreviations and then au3.user.keywords.abbreviations.properties
    1 point
  6. Gotcha! Not anymore that let and const have been added to ES2015. So yeah, ES2015 is a step in the right direction. function main() { let name = 'guiness'; for (let i = 0; i < 10; i++) { let concat = name + i; // This is scoped only to the loop block console.log(concat); } // concat is not seen here, like it would if var was used. }
    1 point
  7. So I'm not MPV I can't answer.
    1 point
  8. You might want to try the latest v1.4 Beta (just updated some 5 minutes ago), and let me know any bugs ... https://funk.eu/wp-content/plugins/download-monitor/download.php?id=217
    1 point
×
×
  • Create New...