/// Use the CAS user id regular expression to extract the RCS ID of a user from
/// the XML returned by the CAS service.
Use the CAS user id regular expression to extract the RCS ID of a user from
the XML returned by the CAS service.
Use the CAS user id regular expression to extract the RCS ID of a user from the XML returned by the CAS service .
fn extract_rcs_id(xml: &str) -> Option<String> {
    Some(
        CAS_USER_REGEX
            .captures(xml)?
            // The first capture should be the RCS ID.
            .get(1)?
            // Get the string
            .as_str()
            // Convert to lowercase.
            .to_lowercase(),
    )
}
fn extract_rcs_id ( xml : & str ) -> Option < String > { Some ( CAS_USER_REGEX . captures ( xml ) ? // The first capture should be the RCS ID. . get ( 1 ) ? // Get the string . as_str ( ) // Convert to lowercase. . to_lowercase ( ) , ) }
Use the CAS user id regular expression to extract the RCS ID of a user from
the XML returned by the CAS service.
Use the CAS user id regular expression to extract the RCS ID of a user from the XML returned by the CAS service .
xml
&str