View Full Version : Regular expression syntax

09-25-2009, 04:43 AM
Do most programming/computer languages use basically the same syntax for regular expressions as Unix programs like grep and vi? I've been having trouble learning regexps because they seem to be different for each language, like in SQL the symbol for a single character is an underscore while in the vi editor it's a period. vi is my first experience with regular expressions, and I have written a spellchecker script for vi that relies heavily on them. It would make work easier if I could go into using other programs and languages and find a familiar and ubiquitous syntax for regexps. Is there any such standard syntax?

09-25-2009, 09:17 AM
Here are the most common ones

Almost every language I've seen use very similar (if not the same) regex syntax.