Sunday 19 May 2019

Output all regex permutations?

Is there a site or way to output all of the permutations of a regex pattern?



I made a simple pattern here with desired output from this 'app':




https://regex101.com/r/lE2tS8/2



or see below:



(?(Big |Small )(Brown |Green |Red )(Ball|Box))



  • Big Brown Ball


  • Big Green Ball

  • Big Red Ball

  • Small Brown Ball

  • Small Green Ball

  • Small Red Ball

  • Big Brown Box

  • Big Green Box

  • Big Red Box

  • Small Brown Box

  • Small Green Box


  • Small Red Box

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...