macros:regular expression: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
m (Fixed Java regex link)
Line 2: Line 2:
Note that because this is Java, the regular expression are slightly different from regular 'regular expressions'. Here is a link where you can test your expression and it will change it to a java-type expression for you: [http://www.cis.upenn.edu/~matuszek/General/RegexTester/regex-tester.html]
Note that because this is Java, the regular expression are slightly different from regular 'regular expressions'. Here is a link where you can test your expression and it will change it to a java-type expression for you: [http://www.cis.upenn.edu/~matuszek/General/RegexTester/regex-tester.html]


Here is the java page that explains what the java regular expressions are. [http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html]
Here is the java page that explains what the java regular expressions are. [https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html]


Note: the newline or (line-break) character is \\\n  (three slashes). All the other characters like {space} require two slashes \\s
Note: the newline or (line-break) character is \\\n  (three slashes). All the other characters like {space} require two slashes \\s

Revision as of 03:22, 23 January 2020

Information on regular expressions can be found here: [1] Note that because this is Java, the regular expression are slightly different from regular 'regular expressions'. Here is a link where you can test your expression and it will change it to a java-type expression for you: [2]

Here is the java page that explains what the java regular expressions are. [3]

Note: the newline or (line-break) character is \\\n (three slashes). All the other characters like {space} require two slashes \\s