ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey N. Solofnenko" <A.Solofne...@mdl.com>
Subject Re: Need help writing regular expression??
Date Wed, 22 Jun 2005 20:59:51 GMT
I would try to replace all spaces '\s' with empty values.

- Alexey.

Ninju Bohra wrote:
> Hello all,
>
> Quick question... I need write a regular expression to
> generate <FirstLetterOfFirstName><LastName> from a
> full name (i.e. <First Name> <Last Name>)
>
> Given the string:  Ninju Bohra
>
> I want:  NBohra
>
> What is the regular expression (if any) I would use?
>
> <property name="full.name" value="Ninju Bohra"/>
>
> <propertyregex property="userID"
>               input="${full.name}"
>               regexp="<need help here>"
>               select="\1"
>               casesensitive="false" />
>     
> Thanx,
>
> Ninju
>
>
>
>
>
> 		
> ____________________________________________________ 
> Yahoo! Sports 
> Rekindle the Rivalries. Sign up for Fantasy Football 
> http://football.fantasysports.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>   

-- 
------------------------------------------------------------------------
/ Alexey N. Solofnenko
home: http://trelony.cjb.net/
/

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


Mime
View raw message