原创 PowerShell腳本傳參

腳本定義 // script file name is "script.ps1" // input parameter param([string]$fileName) // print parameter $fileName

原创 PowerShell函數操作

函數定義 # .\MatchText.java --> MatchText function GetClassName([string]$javaFileName) { $className = $javaFileName

原创 BCD ASCII 相互轉換

頭文件 #include <ctype.h> // for toupper BCD 轉 ASCII void WhAsciiToBcd(unsigned char *psDataIn, size_t uiDataInLen

原创 PowerShell字符串操作

替換 // ".\MatchText.class" --> ".\MatchText." ".\MatchText.class".Remove($className.Length - 5) 移除 // ".\MatchText

原创 正則表達式

簡介 定義 正則表達式是一些用來匹配和處理文本的字符串。 用途 查找特定的信息(搜索) 查找並編輯特定信息(替換) 重點 語法是正則表達式較容易掌握的部分,真正的挑戰在於如何運用語法,如何把實際問題分解爲可由正