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.

SNAPSHOTS

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

DETAILS

This Demonstration is based on the contents of [1].
Reference
[1] User dln385. "Regex Fractals: Images Generated from Regular Expressions." (Apr 15, 2014) imgur.com/a/QWMGi.
    • 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.