learn regular expressions (read all 4 entries…)
guide and example 3 years ago

First, I read this guide.

Next, here’s an example to puzzle over:

sentence.gsub( /\([-\w]+\)/, ’’ )

This example will find the literal parens characters with one or more words in between and replace them with nothing.



Comments:

 

I want to:

The world wants to...

43 Things Login