Dreamweaver Regex Find and Replace Using Regular Expression.2

狂风中的少年 提交于 2020-01-17 01:34:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!