how to match single character or space?

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

Moderator: Mr_Noodle

how to match single character or space? Wed Mar 10, 2021 1:36 pm • by lo_fye
I have looked everywhere for how to do this.
Sometimes the filename is [character][number] [character] [character][number]
Sometimes the filename is [character][number] [space] [character][number]
Since "Character" doesn't include spaces, and neither does Symbol, I don't know how to achieve this.
lo_fye
 
Posts: 4
Joined: Wed Mar 10, 2021 1:32 pm

Re: how to match single character or space? Thu Mar 11, 2021 9:48 am • by Mr_Noodle
You'll need to use two different conditions. You can nest them in an "any" condition if needed (look up nested conditions in the manual).
Mr_Noodle
Site Admin
 
Posts: 11250
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: how to match single character or space? Thu Mar 11, 2021 11:56 pm • by lo_fye
I know how to do conditionals, but I can't match just a space.
There doesn't seem to be a way.
You can match 1 non-blank character, or you can match "N of anything", but you can't match 1 blank character.
lo_fye
 
Posts: 4
Joined: Wed Mar 10, 2021 1:32 pm

Re: how to match single character or space? Fri Mar 12, 2021 10:15 am • by Mr_Noodle
Are multiple spaces ok? Have you tried entering a space character?
Mr_Noodle
Site Admin
 
Posts: 11250
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: how to match single character or space? Fri Mar 12, 2021 10:43 am • by lo_fye
Mr_Noodle wrote:Are multiple spaces ok? Have you tried entering a space character?


I was unaware that you could manually enter literal characters!
lo_fye
 
Posts: 4
Joined: Wed Mar 10, 2021 1:32 pm

Re: how to match single character or space? Mon Jul 05, 2021 11:58 am • by lo_fye
Mr_Noodle wrote:Are multiple spaces ok? Have you tried entering a space character?


I can match space literally, but is there a way to say "zero or more spaces" ?
lo_fye
 
Posts: 4
Joined: Wed Mar 10, 2021 1:32 pm

Re: how to match single character or space? Tue Jul 06, 2021 9:57 am • by Mr_Noodle
That is how you do it.
Mr_Noodle
Site Admin
 
Posts: 11250
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support