Zum Hauptinhalt springen
Oopsy Oops von , vor 15 Jahren
How to find a two-letter word?

The answer is Using Regular Expressions. For example in ActionScript 3.0 it would be: var pattern:RegExp = /\b(.)(.)\b/g; var target:String = „God should have put womens eyeballs in their boobs"; trace("RESULT", target.match(pattern)); // RESULT in In RegExp: \b – word boundaries . – any character Target string by www.bash.org/?49429


Exey Panteleev | CC BY 2.0