我正在使用power-shell並從我的程序中獲取下面的輸出。正則表達式從一長串亂碼中獲取密碼
我有問題從其他事情混亂中獲取密碼。理想情況下,我需要自己獲得Hiva !! 66。我正在使用reg-ex來完成這個任務,而它只是不工作。密碼將始終爲8個字符,分別具有大寫和小寫以及特殊字符。我已經創建了拆分以及我需要的所有其他東西,但是reg-ex部分與我混淆了。
我不在乎有很多關於reg-ex和密碼的問題,但是在它之前和之後似乎沒有太多的混亂。任何幫助將不勝感激。 我最好的嘗試,到目前爲止是:
"(?=.*\d)(?=.*[A-Z])(?=.*[[email protected]#\$%\^&\*\~()_\+\-={}\[\]\\:;`"'<>,./]).{8}$"
C:\Users\<username>\AppData\Roaming\Crystal Point\OutsideView\Macro\CONNECTEXP.VCB:5:For intTmp = 1 To 4
C:\Users\<username>\AppData\Roaming\Crystal Point\OutsideView\Macro\CONNECTEXP.VCB:8:cboCOMPort.SelectString 1, "1"
C:\Users\<username>\AppData\Roaming\Crystal Point\OutsideView\Macro\CONNECTEXP.VCB:11:str2CRLF = Chr(13) & Chr(10) & Chr(13) & Chr(10)
C:\Users\<username>\AppData\Roaming\Crystal Point\OutsideView\Macro\CONNECTEXP.VCB:14: & "include emulation type (currently Tandem), the I/O method (currently Async) and host connection information
for the session (currently COM9, 8N1)" _
C:\Users\<username>\AppData\Roaming\Crystal Point\OutsideView\Macro\CONNECTEXP.VCB:15: & " to the correct values for your target host (e.g., TCP/IP and host IP name or address) and save the
IOSet "CHARSIZE", "8"
PASS="Hiva!!66" If DDEAppReturnCode() <> 0 Then
If DDEAppReturnCode() <> 0 Then
C:\Users\<username>\AppData\Roaming\Crystal Point\OutsideView\Macro\DDEtoXL.vcb:28: MsgBox "Could not load " & txtWorkSheet.text, 48
C:\Users\<username>\AppData\Roaming\Crystal Point\OutsideView\Macro\DDEtoXL.vcb:37:DDESheetChan = -1
C:\Users\<username>\AppData\Roaming\Crystal Point\OutsideView\Macro\DDEtoXL.vcb:38:DDESystemChan = -2
歡呼聲,這對我很好:) – user1345603