• Home
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Site Issues (NOT FOR DATABASE QUESTIONS)
  • Explore
  • Topics
  • Questions
  • Users
  • Badges
Skip to main content
    Faq
    Perl
    How to remove text within parentheses with a regex?

    How to remove text within parentheses with a regex?

    s/\([^)]*\)//
    

    So in Python, you'd do:

    re.sub(r'\([^)]*\)', '', filename)
    


    Related Questions

    What is the difference between "let" and "var"?

    How do I replace all occurrences of a string?

    How to randomize (shuffle) a JavaScript array?

    How do I format a date in JavaScript?

    How can I get query string values in JavaScript?

    How to access the correct `this` inside a callback

    How do I check if a directory exists? "is_dir", "file_exists" or both?

    How to create an array from a CSV file using PHP

    How to pass an array within a query string?

    Insert new item in array on any position in PHP

    Popular Topics

    csv excel http number php php. sql injection request string string contain xml
    View all

    Recent Languages

    •   JavaScript
    •   Mysql
    •   Perl
    •   PHP
    • View all
    Copyright 2024 HowProg.One Privacy Policy