What language are you using? The short answer is just about every language today supports Regular Expressions. If you say you're doing it is bash or in perl or ruby or vim or java or python I can give you some example regex to use. Carl P. On Mon, 2003-03-03 at 21:38, Entelin wrote: > I want to take a variable say a="string.txt" and chop off the last 4 > characters so I can make variable b equal to just "string" > > Thanks for your help > > --------------------------------------------------- > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > To subscribe, unsubscribe, or to change you mail settings: > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss -- Carl Parrish (cparrish@carlparrish.com) http://www.carlparrish.com --- Registered Linux User #295761 http://counter.li.org