PDA

View Full Version : Regular Expressions



kettle_anonymous
04-12-2006, 12:22 PM
Hi,


which Syntax do i have to use?
Do you have an example? A Page where i can study this Syntax?



Example:



Directory: C:\Test
In this directory was a file 20050201_20041231_2349_Test.csv



If i want to make regular expression to look for "Test.csv" what ist the correct expression?



Thx a lot,



Sven

MattCasters
04-14-2006, 04:24 AM
Hi Sven,



That would be: .*Test.csv$
<span style="float:right; width: 20%; border-style: inset;
background: #f0f0f0; font-size: 80%;
padding: 4px; margin-left: 4px;">Kettle uses standard Java Regular Expressions which are a dialect of the often used regular expressions in Unix/Linux tools such as grep, sed, vi, etc. </span>


Java Regular Expression Tuturial (http://java.sun.com/docs/books/tutorial/extra/regex/index.html)



We wil be making a Regular Expression Wizard later on, but it's a lot of work.



Hope this helps,

Matt