Regex 与单词之间的任何字母匹配的正则表达式,或者如果存在';It’根本没有信

Regex 与单词之间的任何字母匹配的正则表达式,或者如果存在';It’根本没有信,regex,Regex,你能帮我建立一个正则表达式,让我匹配: servicerequestinfo service requestinfo service and requestinfo serviceand requestinfo service andrequestinfo servicerequest info servicerequest and info servicerequest andinfo servicerequestand info service without request

你能帮我建立一个正则表达式,让我匹配:

servicerequestinfo
service requestinfo
service and requestinfo
serviceand requestinfo
service andrequestinfo

servicerequest info
servicerequest and info
servicerequest andinfo
servicerequestand info

service without     request   and   info
service       request      info
最重要的是,我可以在一行中找到“服务”、“请求”和“信息”三个词。但我在互联网上能找到的唯一对我有用的东西就是:

service(\w*)request(\w*)info
service (\w*)request(\w*)info
service(\w*) request(\w*)info

或者是变异,据我所知,它只能匹配其中的一部分,但不能匹配全部。我测试了他们的各种使用,我现在已经用完的想法。正则表达式对我来说是新事物,我在实践中学习。但是很难编写谷歌搜索查询,让我精确地找到关于我目前关于regex的问题的正确信息。非常感谢。

考虑以下正则表达式

service[\w\s]*request[\w\s]*info

祝你好运

非常感谢您的快速回答!:)