[Solved] I need a regex pattern which matches the following Hello, World, Hello World
[ad_1] This is about the leanest you can get with that: Hello(?:[ /]?World)?|World Expanded: Hello (?: [ /]? World )? | World [ad_2] solved I need a regex pattern which matches the following Hello, World, Hello World