Can I match an optional unknown character?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

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
_([%$#])*
martinewski
 
Posts: 28
Joined: Sat Jun 29, 2013 6:41 pm

Not really that specifically but you can create two conditions. One to match with symbols afterwards and one to match without.
Mr_Noodle
Site Admin
 
Posts: 11240
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support