# Re: Scanning for more than one specific character with Strin

**URL:** <https://www.ruby-forum.com/t/re-scanning-for-more-than-one-specific-character-with-strin/98482>\
**Category:** Ruby\
**Created:** [January 29, 2006, 6:46pm UTC](https://www.ruby-forum.com/t/re-scanning-for-more-than-one-specific-character-with-strin/98482 "2006-01-29T18:46:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 29, 2006, 6:46pm UTC](https://www.ruby-forum.com/t/re-scanning-for-more-than-one-specific-character-with-strin/98482/1 "2006-01-29T18:46:13Z")

</div>

You can use

a.scan(/(s|k)/).

What’s in between the ‘/ /’ is called a “regular expression”.  
These regular expressions are used to find patterns in strings that you  
can describe in an approximate way.  
They’re a powerful tool.  
To see what’s available, look at

\_[http://www.regular-expressions.info/\_](http://www.regular-expressions.info/_)  
([http://www.regular-expressions.info/](http://www.regular-expressions.info/))  
.

Best regards,

Axel
