Re: regex strings

2014-05-27 Thread Stephen Gilardi
clojure.string/replace replaces the portion of the string matched by the regex with the replacement. If you add ".*" to the regex, the regex will match the entire input string and the form will evaluate to "First". --Steve On May 27, 2014, at 11:24 AM, Glen Rubin wrote: > I have a string of t

regex strings

2014-05-27 Thread Glen Rubin
I have a string of the general form: Name: Last,First Middle ID: GA88192 I am trying to extract the first name by invoking string.replace function, for example to extract the first name I invoke the following where 'nameidstring' is the general form above: (clojure.string/replace nameidstri