Re: about a regex

Piper H <[email protected]>
Newsgroups gmane.comp.lang.perl.beginners
Message-ID <CA+GLnbhurWQu0mkQaco_5hPNPKccAY_4ER7wFzNL43xFj0mcuQ@mail.gmail.com>
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 <[email protected]>
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 !~ m/[a-zA-Z0-9]/
>
>
> On Fri, Dec 31, 2021 at 10:23 PM Piper H <[email protected]> wrote:
>
>> Hello
>>
>> I know [a-zA-Z0-9] means words and numbers.
>> But what's the reverse of this regex?
>>
>> Thank you.
>>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.