Hello all, I have a var, $DOC_NAME, holding a file name. I need to get the first part of the variable into another variable. Some examples are A98-12345, SO-02-789, P-99-029833 and GQE-37-2199.
Examples: A98-12345, I need A98 SO-02-789, I need SO-02 P-99-029833 I need P-99 GQE-37-2199 I need GQE-37 I know if it were always the first X that I needed I could do this: $SUBDIR = (substr ($DOC_NAME, 0, X)); Really, I need everything until I get 2 digits in the new var. Anyone want to take a stab at this? Thanx for any help! ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ CONFIDENTIALITY NOTICE: This message may contain legally confidential and privileged information and is intended only for the named recipient(s). No one else is authorized to read, disseminate, distribute, copy, or otherwise disclose the contents of this message. If you have received this message in error, please notify the sender immediately by e-mail or telephone and delete the message in its entirety. Thank you. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ <<<<GWIASIG 0.06c>>>> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
