我注意到,Dreamweaver在行首或末尾找不到目標,使用RegExp ^和$符號。這是因爲如果把Dreamweaver的在開始和結束自己的角色,所以用「^功能」搜索沒有找到:
function getValue()
有誰知道這是怎麼回事?
謝謝。
我注意到,Dreamweaver在行首或末尾找不到目標,使用RegExp ^和$符號。這是因爲如果把Dreamweaver的在開始和結束自己的角色,所以用「^功能」搜索沒有找到:
function getValue()
有誰知道這是怎麼回事?
謝謝。
http://www.adobe.com/devnet/dreamweaver/articles/regular_expressions_pt2.html
To make^and $ match the beginning or end of a line, you must precede the regex with (?m). However, the text must use only a line feed character. You need to remove carriage returns from text created on Windows, and replace Mac carriage returns with line feeds. The parentheses of (?m) are not counted as a capturing group.
你裏面的Dreamweaver搜索的地方?他們可能沒有實施這些錨。 –
是的,我正在尋找一個JavaScript文件。但我不認爲RegEx引擎依賴於具有^和$以及結尾的源。工作是識別什麼時候結束。 – Steve
關於關閉這個問題的請求,因爲它不是關於「編程」,Dreamweaver是一個IDE,所以不會有關於編程的問題;他們將涉及用戶界面。如果你不想要這樣的問題,你不應該有一個Dreamweaver標籤。 – Steve