多路文字如何替换 [英] how does a multi-way text replace

查看:169
本文介绍了多路文字如何替换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

多路文字如何替换

例子
之前
第二个参数可以强制多个

我想自动替换"second""can"和"multiple"使url
例子
http://www.codeproject.com/script/Answers/search?g=second [ ^ ]
http://www.codeproject.com/script/Answers/search?g=can [ ^ ]
http://www.codeproject.com/script/Answers/search?g=multiple [ ^ ]
之后
可以强制 second second 自变量

how does a multi-way text replace

example
before
the second argument you can force multiple

I want to automatically replace "second" "can" and "multiple" make url
example
http://www.codeproject.com/script/Answers/search?g=second[^]
http://www.codeproject.com/script/Answers/search?g=can[^]
http://www.codeproject.com/script/Answers/search?g=multiple[^]
after
the second argument you can force multiple

推荐答案

您可以使用正则表达式搜索特定的单词.但是,您的问题中尚不清楚的是您如何决定句子中的哪些词

第二个参数可以强制多个

是您想捕捉的单词.

还不清楚您的问题与AJAX有什么关系.

请编辑您的帖子以提供详细信息,不要发布不是答案的答案.
You can use regular expressions to search for specific words. However, what''s not clear in your question is how you decided what words in the sentence

the second argument you can force multiple

were the words you wanted to capture.

It''s also far from clear what your question has to do with AJAX.

Please edit your post to provide detail, don''t post an answer that is not an answer.


这篇关于多路文字如何替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆