Page 1 of 1

Can I match an optional unknown character?

PostPosted: Wed Nov 07, 2018 2:27 pm
by martinewski
Is it possible to match a filename containing an optional list of characters?

In a regex for an underscore followed by one or more of three characters it would be something along:
Code: Select all
_([%$#])*

Re: Can I match an optional unknown character?

PostPosted: Thu Nov 08, 2018 11:28 am
by Mr_Noodle
Not really that specifically but you can create two conditions. One to match with symbols afterwards and one to match without.