Afraits Posted August 4, 2005 Posted August 4, 2005 I have a regular expression to aid me in extracting information from a file: (ALPHA|NUMERIC|DATE)\s+(\w+)\s+ Which extracts a type descriptor and the variable name into the cature groups. However a textline may have one or more ';' characters followed by (and/or preceeded by) whitespace which acts as a comment and hence in these cases I would like the expression not to match. Is there a way to do this without performing a seperate extra check for a ';' preceeding the part I want? Quote Afraits "The avalanche has started, it is too late for the pebbles to vote"
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.