Re: about a regex

2021-12-31 Thread wagsworld48 via beginners
Add ^ as [^a-zA-Z0-9] Though there are probably a number of different ways to approach RegEx… Wags ;) WagsWorld Hebrews 4:15 Ph(primary) : 408-914-1341 Ph(secondary): 408-761-7391 On Dec 31, 2021, 20:22 -0800, Piper H , wrote: > Hello > > I know [a-zA-Z0-9] means words and numbers. > But what's t

Re: about a regex

2021-12-31 Thread Piper H
I queried the doc and found this is what I wanted. [^a-zA-Z0-9] Thank you. On Sat, Jan 1, 2022 at 12:38 PM Adam Hopkins wrote: > If you add an underscore (the equivalent of \w): [a-zA-Z0-9*_*] > > Then \W is the opposite. > > > If you wanted to not match [a-zA-Z0-9] > > You could do > > $string

Re: about a regex

2021-12-31 Thread Adam Hopkins
If you add an underscore (the equivalent of \w): [a-zA-Z0-9*_*] Then \W is the opposite. If you wanted to not match [a-zA-Z0-9] You could do $string !~ m/[a-zA-Z0-9]/ On Fri, Dec 31, 2021 at 10:23 PM Piper H wrote: > Hello > > I know [a-zA-Z0-9] means words and numbers. > But what's the re