From owner-freebsd-questions@FreeBSD.ORG Thu Jul 21 03:04:43 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C972D106566B for ; Thu, 21 Jul 2011 03:04:43 +0000 (UTC) (envelope-from s.dave.jones@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 87FF98FC08 for ; Thu, 21 Jul 2011 03:04:43 +0000 (UTC) Received: by vws18 with SMTP id 18so856707vws.13 for ; Wed, 20 Jul 2011 20:04:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=3ZuE87Pd91lhWp8/orPeVeFaxI1SRw3Sdp49u+0Ne84=; b=gtnUyKIJdmw75DC5XW7QYGP4E0pEccjC/9VIq7PoBIGej3i/ZYKmL3UKq1IqCKLaP0 SbodAqfB2Ubp0rnuCR67p8bsnkfBsplGz2PWCADVx779cVtjq8aAdoCbK+aQz+xuDChi HTmEtcqxa+5JhlZ4s0KDt4RCDCqdTDEeVftFI= MIME-Version: 1.0 Received: by 10.52.188.68 with SMTP id fy4mr9827047vdc.91.1311215637803; Wed, 20 Jul 2011 19:33:57 -0700 (PDT) Received: by 10.52.111.162 with HTTP; Wed, 20 Jul 2011 19:33:57 -0700 (PDT) Date: Thu, 21 Jul 2011 10:33:57 +0800 Message-ID: From: dave jones To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Question about regular expressions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2011 03:04:43 -0000 Hi, I have a config file below: $user = 'root'; // This is the username if $user is found, I want to display root. Anyone knows how to programming in C or some other language? thank you. Regards, Dave.