Tags » Regex

Regex: Counting Patterns In A String

Counting patterns in a string can be easy using Regex.

Using the =~ operator will match a string against a regular expression.
Here are some examples of how to use it. 252 more words

Ruby

Case study- client side email validation

A few months ago, we were working on upgrading the user account creation screen.  It was mostly cosmetic- the original version was in a bit of an odd order, and didn’t really have any logical flow to it.  556 more words

Recently I was in need of a regular expression while searching though some code and I needed the ability to sift through all characters, including the newline character. 32 more words

Development

How to Tackle Regex in Ruby

The first time I came across regular expressions in Ruby, it was confusing to get my head around how to use this powerful tool in my programming repertoire. 518 more words

#flatironschool

Regux

目標文字:

when
sampleEntity : SampleEntity($code1:code)
sampleEntity2 : SampleEntity2()
if ($code1 == "1" && #max(1, 0) == 1 && #trim("apple ").equals("apple")) do
else if ($code1 == "2") do
then
… 33 more words
Java

Bonfire 29: Spinal Tap Case

TASK: Convert a string to spinal case. Spinal case is all-lowercase-words-joined-by-dashes.

I’m not particularly proud of the way I got it to work for theCamelCase, but… 32 more words

Bonfire