我想用正則表達式來表示下面的字符串。如何用正則表達式表示下面的字符串?
這是一句:
pro displ = "monitor" id="1"
我嘗試這樣做:
pro displ=(("[^"]*")monitor(("[^"]*") id =(("[^"]*")1(("[^"]*")
但它不是working.as我是新來的正則表達式,請幫我解決這個問題
我想用正則表達式來表示下面的字符串。如何用正則表達式表示下面的字符串?
這是一句:
pro displ = "monitor" id="1"
我嘗試這樣做:
pro displ=(("[^"]*")monitor(("[^"]*") id =(("[^"]*")1(("[^"]*")
但它不是working.as我是新來的正則表達式,請幫我解決這個問題
我認爲這應該工作到字符串匹配:
pro\sdispl=["]monitor["]\sid=["]1["]
對於雙引號,我試過這樣((」[^「] *」),但它是在msbuild.i中顯示一些錯誤,認爲錯誤是由於[方括號。 – Nithin
什麼是你想要anlyze字符串,有什麼價值你想得到什麼是你的正則表達式? – Fischermaen
我的字符串是。我想要這個的正則表達式 –
Nithin
想要從字符串中取出什麼值?或者你只是想檢查整個字符串? – Fischermaen