11.14. Solutions: Regular expressions

  • /a/

  • /^a/

  • /th/

  • /[aA]/

  • /\*/

  • another solution: /[*]/

  • /^[aA]/

  • $str =~ /a/ and $str =~ /e/

  • /a.*e/

  • $str !~ /a/

  • $str !~ /[ae]/

  • $str =~ /a/ and $str !~ /e/

  • /[aeiou]{2}/

  • /[aeiou].*[aeiou].*[aeiou]/

  • /....../ /.{6}/

  • length($str) == 6


If you are interested in on-site trainings by the author, please contact me directly.

Online courses:

Would you like to get
updated when I publish
the next article?

Follow me:

Google Plus Twitter RSS feed