o.k. another regex issue . . . I want a one-liner that can remove everything after a given character: i.e.
in this case everything after ! (fortran comment): would this work: perl -npe 's/\!.+$//' my thinking is that \! Is the literal character and . would count for anything + would represent any number of anything and $ would symbolize the end of the line. Am I close, if so how close? Thanks so much, tim ____________________________________________________ Timothy B Booher, Lt USAF, AFRL/MNAC 101 West Eglin Blvd, Suite 339 Eglin AFB FL 32542-6810 Phone: 850-882-8302 Ext. 3360 (DSN 872-) FAX: 850-882-2201