问题
Dreamweaver Regex Find and Replace Using Regular Expression. I want to replace all a-letters with k-letter and all other latters to stay on their place unchanged. I have this below:
Find: <body>nebojsa-sarac-([\s\S]*?)a([\s\S]*?).html
Replace: <body>nebojsa-sarac- $1 k $2.html
The problem is it change only first letter a into k and rest stay unchange in the example below:
<body>nebojsa-sarac-axxxax-axxaaxxa.html
into:
<body>nebojsa-sarac-kxxxax-axxaaxxa.html
The rest of a letters stay unchanged-not turn into letter k Does someone know the solution for this?
It really works in Notepad++ Do you know how to stop this code example
nebojsa-sarac-[a-z.-]*?\Ka|\G(?<!^)[a-z.-]*?\Ka - UNTIL .ahtmal AND DON'T CHANGE IT
来源:https://stackoverflow.com/questions/22321708/dreamweaver-regex-find-and-replace-using-regular-expression-2