Regular Expression Examples

From TekiWiki

Jump to: navigation, search

This whole wiki has now moved to http://www.springboardsolutions.com/wiki

Go to this page Regular Expression Examples

 
Line 9: Line 9:
==Finding Trailing Spaces==
==Finding Trailing Spaces==
-
This finds spaces at the end of the line:
+
This finds spaces at the end of the line (note that there is a space at the beginning of the expression):
<pre>
<pre>
  +$
  +$
 +
</pre>
 +
 +
==Lines that Contain Only Digits==
 +
This finds lines that have at least one digit and the whole line contains nothing but digits:
 +
 +
<pre>
 +
^[0-9]+$
</pre>
</pre>

Latest revision as of 07:08, 15 July 2014

Personal tools