Generating Fractals with Regular Expressions

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

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 ,

[more]

,

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.

[less]

Contributed by: Enrique Zeleny (April 2014)
Open content licensed under CC BY-NC-SA


Snapshots


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.



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.
Send