On January 9, 2006 04:19 pm, Curtis L. Olson wrote:
> In nasal, I would like to check if a string ends in '.wav'.  Is there an
> easy way to do this?
>
> Thanks,
>
> Curt.

You can try this:

substr(foo, size(foo) - 5) == ".wav"

Ampere


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to