Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Is there a place where I can look, what kind of regexes I can use with the --tr option from cclive?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

(Disclaimer: this answer is based on Internet research without hands-on experience with the program.)

CCLive supports the --tr option since version 0.7.6. Until then the --regexp option could be used:

0.7.6  Mon Sep 12 2011  Toni Gundogdu
Changes:
    - Add --tr (depr. --regexp, --subst)
    - Add --prefer-format
    - Revise manual

Looking at the man page, the --tr option states:

Default is "/(\w|\s)/g".

Since the regexp matching code is based on libpcre, I think the standard Perl Regular Expressions are allowed.

The source code that performs regular expression matching is also available to browse. I cannot really put all things together, but that might be the place for any special options used for pcre.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.