regex in cas-protocol.xml

Paul B. Henson henson at cpp.edu
Mon Feb 22 16:31:50 EST 2016


> From: Marvin Addison
> Sent: Monday, February 22, 2016 12:43 PM
> 
> I tend to terminate regexes with ".*" any time I mean "everything following"
> which will include more data to be matched than without, which is usually
> what I want.

Visually I can see how that might be more clear to look at. Implementation wise, is it smart enough to realize that when there is nothing else following the .* it can stop actually parsing the string being matched after the / like it would in the regex without the .*?

> That. What you provided should be equivalent.

Cool, thanks for the clarification.

--
Paul B. Henson  |  (909) 979-6361  |  http://www.cpp.edu/~henson/
Operating Systems and Network Analyst  |  henson at cpp.edu
California State Polytechnic University  |  Pomona CA 91768




More information about the users mailing list