Thomas Owens
Thomas Owens

Reputation: 116187

What class of language can Perl regular expressions be used against?

I know that some of the capabilities of the Perl regular expression engine are not regular. However, what class is it? It might be context-free, but CS theory was never my strongest subject.

Upvotes: 7

Views: 262

Answers (1)

geowa4
geowa4

Reputation: 41833

Actually, many implementations are neither regular nor context-free; patterns have become their own beast. This Wikipedia article has more on this, including a bit from Larry Wall, the author of the Perl language.

Upvotes: 3

Related Questions