ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nat Gross <natgross.rentalsyst...@verizon.net>
Subject regex newbie. propertyregex help, please.
Date Mon, 24 Jan 2005 22:52:38 GMT
Hi;
To a regex newbie can someone please supply the pattern to strip off the 
word "Bean" from the string.

In the following, assuming that property 'beanName' contains a string 
'AnyBean',
the new 'beanPrefix' property should be 'Any'. (By convention, the 
substring 'Bean' is always at the end of the string.)

<propertyregex property="beanPrefix" input="${beanName}" select="\0">
    <regexp pattern="//>  <!--eg. "MathBean" becomes "Math",  
"StateBean" becomes "State". -->
</propertyregex>

Thanks
-nat

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message