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