mercredi 25 mars 2015

lua pattern to replace any word,character, digit or symbol followed by a paticular string

I want to replace any word, character, digit or symbol (except ; , .) followed by the string "some-word\" in Lua. More like a '*' option in regex. Is there any thing similar to '*' in Lua?


Example:


some-word\test -> some-word\###


some-word\b*ax#@$6; -> some-word\###;


some-word\?foo,> -> some-word\###,


Aucun commentaire:

Enregistrer un commentaire