Useful Regex Sequences

From CastleCopsWiki

Jump to: navigation, search
Desired action Metacode Example Notes
Skip <n> lines ([^\n]*?\n){<n>} ([^\n]*?\n){4} Skip 4 lines
Match on a domain name ([\w-]+\.)+[a-z]{2,6} ([\w-]+\.)+[a-z]{2,6} covers newer TLDs
Match <n> numbers and/or dashes ([.\w]*?[-\d]){<n>} ([.\w]*?[-\d]){6} Match on 6 occurances


Back to MWP Filter References

Personal tools