From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by sourceware.org (Postfix) with ESMTPS id 79EC83853831 for ; Sun, 23 May 2021 16:00:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 79EC83853831 Received: by mail-io1-xd2b.google.com with SMTP id z24so25290501ioi.3 for ; Sun, 23 May 2021 09:00:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=xhnrPCvvt0b3xSutRd0w62f0waI+nZHN77VRMEkK2LQ=; b=KfmZrXS9k7Mc4qs/eTe+FEtVh+slfjUzuuifQO+HpR7N6QxhZNsW7WQ1K8JihIdag2 SNXo+rcWmgfFWz5ivFImaoKk9RtwTTjKQjaICeqP3gCsubAWn8lT6MP5LxGUFxu+zi2P rtg8eptxUnaKWc8RC8PF9Jkf5XdoF+D41r21lW81g1jhl1R+blIJRCnZd/i94KYNJM2j haaUbEGA5SBKpa3kO9IP/qSWqD18YdfmZ1LxKRoPFNGnqkLfFEic1t8G+YMMzel3PMkV YtkE0UvTzx7dNZ8IFyCzXIhY2/sEP6tSbt/VQWdzDFIh2XYfCjDO5axK5Idlxd5u/uUE QcMg== X-Gm-Message-State: AOAM531wQTr6cILY6AIZU+yb5i4iNyRXa5lcmmce4DbpRRkOR+aoPvnd uAAmw6lhbfnWRJiuykiy+eQqNyYHVIuyPVMQDHE8QqwEHQk= X-Google-Smtp-Source: ABdhPJzgjNFgXJdN/oHoKsWN+1IkcgIoVdxgsqw7ZbfHKK4wpf3j8zdbj+j7udytnOkK72yluJupOVNWidMeX81dUxQ= X-Received: by 2002:a5e:8c11:: with SMTP id n17mr10828332ioj.53.1621785621633; Sun, 23 May 2021 09:00:21 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a5e:d714:0:0:0:0:0 with HTTP; Sun, 23 May 2021 09:00:21 -0700 (PDT) From: Peng Yu Date: Sun, 23 May 2021 11:00:21 -0500 Message-ID: Subject: How to specify a TAB in a regex and in a char class? To: libc-help@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 May 2021 16:00:23 -0000 Hi, With REG_EXTENDED, I don't find that \t can be used as a TAB. Is the only way to specify a TAB character in a regex is to type the TAB character literally? Any other better way to specify a TAB character in a regex? (Note, the regex string is read from some input. I am not talking about the native C code, as a TAB can be typed as \t in a C string.) Thanks. -- Regards, Peng