PHP regex generator

后端 未结 1 1806
伪装坚强ぢ
伪装坚强ぢ 2021-01-27 07:20

I have now got a working regex string for the below needed criteria:

a one line php-ready regex that encompasses a number of keywords, and keyterms and wi

1条回答
  •  既然无缘
    2021-01-27 08:11

    I have written a function for you here:

    
    

    I got the permutations function from:

    http://www.hashbangcode.com/blog/getting-all-permutations-array-php-74.html

    But I would recommend to find a better function and use another one since just at first glance this one is pretty ugly since it increments $i to 10,000 no matter what.

    Also, here is a codepad for the code:

    http://codepad.org/nUhFwKz1

    Let me know if there is something wrong with it!

    0 讨论(0)
提交回复
热议问题