I have a question concerning regex, i.e. with the syntax that works with php. I know some basics about regex in php, so I know that I can match something with
preg_match("/[maxmustermann ]/u", $input_line, $output_array);
Now I want to match all text which contains optional several words which by could be seperated by an space.
Sorry I just dont know how to ask. I try to make an example. I have this text and want to match all the bold ones.
orem ipsum dolor sit amet, consectetur max adipiscing elit. Proin maxm pellentesque dui maxmustermann eu erat mustermann rhoncus tempor sit amet quis odio. Max Mustermann habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Max Muster Mann et malesuada fames ac ante ipsum primis in faucibus. Nam vitae nisl dui.
That means I have this two words: max and mustermann and I want to match words (one ore more) which containing the letters of max and/or mustermann in the order how they are but also random placed space.
Thank you