Jump to content

Search the Community

Showing results for tags 'sre variables'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Local Const $ASCII_ACK = Chr(6) ConsoleWrite('$vVar = 100 ; Variable inside quotes.' & @CRLF) ConsoleWrite('$MB_SYSTEMMODAL ; Variable inside quotes.' & @CRLF) $sData = FileRead(@ScriptFullPath) ; Replace variables inside quotes with ACK$vVariableACK. ; $sData = StringRegExpReplace($sData, '(?m)^((?:[^''";]*([''"]).*?\2)*[^;]*)(?:;?[^\r\n]*)', '\1') ; By ProgAndy. http://www.autoitscript.com/forum/topic/108728-stripcomments/#entry765712 $sData = StringRegExpReplace($sData, '(?m)^((?:[^''"]*([''"])(?:[^$]*?(\$\w+))*([''"])[^;]*)(?:;?[^\r\n]*)', $ASCII_ACK & '\1' & $ASCII_ACK) ; Comment ConsoleWrite($sData & @CRLF) The code isn't working as the regular expression is poorly designed. But I was wondering whether it was possible to wrap $VARNAME (dollar+ A-Za-z0-9) with ACK. As I'm replacing variables in a script and it's catching those in a quoted string. So if I use a lookahead and lookbehind for x6 then this won't happen.
×
×
  • Create New...