Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 11571

RegEx - How to combine or change two regular expressions to make them work simultaniously

$
0
0

I have two regular expressions which work on their own, but I can't find a way to combine them, or at least they don't work together...

These are the two RegEx I try to combine:\A\s+ to remove leading space\[(.*?)\] remove any square brackets and everything between

This is what I tried:(\A\s+)|(\[(.*?)\])

But unfortunately the square brackets and everything between are removed but not the leading space.

I'm trying this with the mass rename tool in DC (doublecmd) under linux (debian).


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>