Wednesday, 11 September 2013

How to match consecutive characters but not one next to the other?

How to match consecutive characters but not one next to the other?

For example, i want to match: my_very_nice_file.js and i want to match it
with these characters: mrie
m: my
r: very
i: nice
e: file
As you see, these chars are followed by another but they are not necessary
together.
Just like Sublime Text 2 matches a file name. You can put any character
but one must follow the other.
Example:

I must do it in JavaScript, any suggestion?

No comments:

Post a Comment