Generating Fractals with Regular Expressions

This Demonstration shows fractal structures generated by regular expressions. Starting with the array , each integer is replaced by the array formed by prepending to the elements of ,
and the process repeats a number of steps. Then, the elements of the array are evaluated using a regular expression, and colored according to the number of digits that match the selected regular expression.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


This Demonstration is based on the contents of [1].
[1] User dln385. "Regex Fractals: Images Generated from Regular Expressions." (Apr 15, 2014)
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.