some question about magic characters of pattern in Lua
1st. I just want know some simple example about the usage of magic characters

> ( ) $

For example:

    str= select(1, string.gsub("0123456789", "[^0-7]", "L"))
    print(str) -->01234567LL

2st. How can I match string that start with the letter 'a'

    "sasdfsdf","asdfsdfl" 
    the result of matched string is "sasdfsdf"

thanks advance!
some question about magic characters of pattern in Lua
===

1st. I just want know some simple example about the usage of magic characters

> ( ) $

For example:

    str= select(1, string.gsub("0123456789", "[^0-7]", "L"))
    print(str) -->01234567LL

2st. How can I match string that start with the letter 'a'

    "sasdfsdf","asdfsdfl" 
    the result of matched string is "sasdfsdf"

thanks advance!