Lua pattern matching vs. regular expressions

Posted by harald on Stack Overflow See other posts from Stack Overflow or by harald
Published on 2010-04-22T18:18:33Z Indexed on 2010/04/22 18:23 UTC
Read the original article Hit count: 536

Filed under:
|
|

hello,

i'm currently learning lua. regarding pattern-matching in lua i found the following sentence in the lua documentation on lua.org:

Nevertheless, pattern matching in Lua is a powerful tool and includes some features that are difficult to match with standard POSIX implementations.

as i'm familiar with posix regular expressions i would like to know if there are any common samples where lua pattern matching is "better" compared to regular expression -- or did i misinterpret the sentence? and if there are any common examples: why is any of pattern-matching vs. regular expressions better suited?

thanks very much,

harald

© Stack Overflow or respective owner

Related posts about lua

Related posts about regex