I need to detect * in string
I try x =~ /*/ and x =~ "/*/"
Both variants are incorrect
Please give me advice
* is a quantifier in regular expressions. You need to escape it.
s =~ /\*/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With