[prev in list] [next in list] [prev in thread] [next in thread]
List: jedit-cvs
Subject: [ jEdit-commits ] SF.net SVN: jedit: [9876]
From: ezust () users ! sourceforge ! net
Date: 2007-06-28 21:26:56
Message-ID: E1I41Vw-000644-GI () sc8-pr-svn4 ! sourceforge ! net
[Download RAW message or body]
Revision: 9876
http://svn.sourceforge.net/jedit/?rev=9876&view=rev
Author: ezust
Date: 2007-06-28 14:26:56 -0700 (Thu, 28 Jun 2007)
Log Message:
-----------
Documented the use of newly added (re) prefix to disable translation into globs.
Modified Paths:
--------------
jEdit/trunk/doc/users-guide/globs.xml
Modified: jEdit/trunk/doc/users-guide/globs.xml
===================================================================
--- jEdit/trunk/doc/users-guide/globs.xml 2007-06-28 17:21:43 UTC (rev 9875)
+++ jEdit/trunk/doc/users-guide/globs.xml 2007-06-28 21:26:56 UTC (rev 9876)
@@ -59,5 +59,20 @@
<listitem><para><userinput>[^#]*</userinput> - all files whose names do not
start with <quote>#</quote>.</para></listitem>
</itemizedlist>
+
+ <bridgehead> Using regexes instead of globs </bridgehead>
+ <para> Sometimes it is desirable to use a regular expression instead of a glob for \
specifying file sets. This is because regular expressions are more powerful than \
globs and can provide the user with more specific filename matching criteria. To \
avoid the glob-to-regex transformation, prefix your pattern with the string \
<literal>(re)</literal>, which will tell jEdit to not translate the following pattern \
into a glob. For example: </para> +
+
+ <glosslist>
+ <glossentry>
+ <glossterm> <literal> (re).*\.(h|c(c|pp)?) </literal> </glossterm>
+ <glossdef><para> Matches *.c, *.cpp, *.h, *.cc </para> </glossdef>
+ </glossentry>
+ </glosslist>
+
+ <para> If you need to match files that begin with the glob-translate-disable \
prefix <literal>(re)</literal>, you can escape it with a leading backslash and the \
metacharacters will be translated into globs as before. </para> +
+
</appendix>
This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
jEdit-CVS mailing list
jEdit-CVS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic