Just as you can easily create regular expressions with RegexMagic, use RegexMagic's handy code snippets to instantly use the regular expressions in your source code. Anything can be done: testing a string for a match, extracting search matches, validating input, search-and-replace, splitting a string, querying databases, etc.
Each regular expression engine has its own regular expression flavor. They all differ in the features they support and the syntax they use. Differences between modern flavors are subtle and sometimes confusing. Older flavors often lack features that have become standard. RegexMagic can generate regular expressions for the specific flavor used by all the programming languages it supports. You don't have to worry you'll get different results in your actual program than in RegexMagic.
Each regex library uses a different class structure, different function calls, etc. And each programming language has different syntax rules for strings and regex operators. The regex \\ matches a single backslash. In Perl, this becomes the operator /\\/. In Java, this becomes the string "\\\\". In Java, the Pattern class stores a regex, while the Matcher class does the work and stores results. In .NET, the Regex class stores the regex and does the work, while the Match class stores the results. You get the picture.
Rely on RegexMagic to handle all these details. Just select the language you are working with, and the action you want to perform. Test whether a string matches a regex, extract matches from a string, search and replace, split a string, etc. RegexMagic knows all the common regex actions and how to perform them with a variety of programming languages.
|Using regular expressions with C#|
|Using regular expressions with Java|