2016-08-13 236 views
-1

我發現,

$ :  Matches the end of the line 
\s:  Matches whitespace 
\S:  Matches any non-whitespace character 

但究竟是什麼\ $嗎?

回答

1

\ $只是轉義字符$所以它會匹配$字面上

2

\ $將有助於找到字符「$」的基礎上分配給正則表達式的表達式標誌的內容可用。

說,例如:

\ $:只有找到一個 「$」 在內容 \ $/G:找到 「$」,在內容全局可用。

請找到截圖,它可以給你清晰的想法。

\ $: Expression \$ \ $與全球的表達式: \$ with Global expression