Regular expressions

User avatar
scole of TSBT
Boinc Major General
Boinc Major General
Posts: 5040
Joined: Mon Feb 03, 2014 2:38 pm
Location: Goldsboro, (Eastern) North Carolina, USA

#1 Regular expressions

Post by scole of TSBT » Mon Mar 29, 2021 8:32 pm

I need a linux regular expression that will search for a A, B and C in any order. Can anyone help?
Image

davidBAM
General Bitchin'
Posts: 5476
Joined: Wed Aug 15, 2018 1:15 pm
Location: Huntly, Scotland
Contact:

#2 Re: Regular expressions

Post by davidBAM » Tue Mar 30, 2021 10:10 pm

with or without other chars in between ?

also, for bash or something else?
I think this is fool-proof but could you just try it for me please? • There are 10 types of people in the world; those who understand binary, and those who don’t
Image

User avatar
scole of TSBT
Boinc Major General
Boinc Major General
Posts: 5040
Joined: Mon Feb 03, 2014 2:38 pm
Location: Goldsboro, (Eastern) North Carolina, USA

#3 Re: Regular expressions

Post by scole of TSBT » Tue Mar 30, 2021 10:22 pm

could be anything between. Any char before and after including carriage return and newline

User avatar
Megacruncher
G.L.S.B.
G.L.S.B.
Posts: 4186
Joined: Mon May 29, 2006 11:33 pm
Location: Edinburgh, Scotland
Contact:

#4 Re: Regular expressions

Post by Megacruncher » Wed Mar 31, 2021 12:09 am

???WTF?
Sorry guys, you are tots on your own!
Willie the Megacruncher
Image

User avatar
scole of TSBT
Boinc Major General
Boinc Major General
Posts: 5040
Joined: Mon Feb 03, 2014 2:38 pm
Location: Goldsboro, (Eastern) North Carolina, USA

#5 Re: Regular expressions

Post by scole of TSBT » Wed Mar 31, 2021 12:22 am

Megacruncher wrote:
Wed Mar 31, 2021 12:09 am
???WTF?
Nope, that regular expression doesn't work :roll:

Post Reply Previous topicNext topic

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 2 guests