|
Hi
I need to convert any letter that occur twice or more within a word with a single letter of itself.
For example:
School -> Schol Google -> Gogle G gle -> Gogle VooDoo -> Vodo
I tried the following, but stuck at the second parameter in eregi...
Started by uuɐɯǝʃǝs on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It should work if you use:
$word2 = eregi_replace("(\w)\1+", "\\1", $word);
Which backreferences the original match.... .
Not only are you capturing the entire thing (instead of just the first character), but {2,} rematching [a-z] (not the original match) .
|
|
When I am in a list and I press a letter to jump to the first entry that starts with that letter why does it leave that entry on the bottom of the visible entries? It should make the entry the top visable entry so that many entries that start with that...
Started by James A. N. Stauffer on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Agree with the letter you pressed be in the middle of the ones that are seen?
To extend your example and the last couple of options beginning with....
Especially if you have to continue hitting that letter to get to the next option.
I agree.
|
|
I'm currently using this regex ^[A-Z0-9 _]*$ to accept letters, numbers, spaces and underscores. I need to modify it to require at least one number or letter somewhere in the string. Any help would be appreciated!
This would be for validating usernames...
Started by makeee on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Need one letter or number, and then an arbitrary number of numbers, letters, spaces or underscores simply need to specify your current RE, followed by a letter/number followed by your current RE again _]*$
It will check ahead that....
|
Ask your Facebook Friends
|
I need a regex to validate passwords with the following specs:
It must be between 6 and 20 characters with at least one upper case letter, one lower case letter and one digit
Started by Jangwenyi on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
And then as a last step.
The idea is to use positive lookaheads to ensure that at least one lower case letter, one upper case letter, and one digit are contained within the password.
In Regex Hero.
|
|
Same as first letter last letter but let's keep it to things found in the kitchen!
Started by fineyouguyswin on
, 11 posts
by 7 people.
Answer Snippets (Read the full thread at cafemom):
Egg garlic Carrot tea apricot toaster Rosemary Posted on CafeMom Mobile yeast tarragon noodles .
|
|
Title says it all. Want the current letter, offering November 2011's letter (Datamancer or First Frost).
Started by KarasuG on
, 12 posts
by 1 people.
Answer Snippets (Read the full thread at gaiaonline):
KarasuG KarasuG KarasuG KarasuG KarasuG Bump....
KarasuG KarasuG KarasuG KarasuG KarasuG KarasuG Bump.
KarasuG KarasuG KarasuG KarasuG KarasuG Bump.
KarasuG KarasuG KarasuG KarasuG Bump.
KarasuG KarasuG KarasuG Bump.
KarasuG KarasuG Bump.
KarasuG Bump.
|
|
Only starting java, need a program to convert the letter on the button of a mobile phone into a number.
e.g. a=2 or v=8. I've tried a few approaches, it compiles alright but wont give me the answer?
public class digits { public static void main (String...
Started by poj52 on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
For example:
if (letter=="A" || letter==....
You verify your input letter ? you should rather go for char than for string (and a switch instead? So, if you want to go that way you should add on more || clause for every letter.
|
|
I have a mix of greek and normal words and now the order of these is that the normal words comes first and then all the greek words. I want them to get mixed in the order so beta in greek is the same as B .
How can I make this ORDER BY in SQL Server?
Started by Philip on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
In Greek there should be both an omicron and omega... .
So, for greek you would use:
ORDER BY textField COLLATE 124
See a list of collations (there are several greek ones), that can be used with ORDER BY .
When ordering, you can specify the collation to use.
|
|
We're just talking Letters not White Wall or Red Line tires.
Post pics and vote if you prefer Letters in or Letters Out and if there is a difference on Convertible and Hard Top models.
Started by moleary on
, 25 posts
by 18 people.
Answer Snippets (Read the full thread at v8buick):
I love white letter.
Its not a muscle car unless its got the white letters out.
It the other way around.
|
|
Title says it all. Want the current letter (January 2012), offering November 2011's letter (Datamancer or First Frost).
Started by KarasuG on
, 14 posts
by 1 people.
Answer Snippets (Read the full thread at gaiaonline):
KarasuG KarasuG KarasuG KarasuG KarasuG Bump....
KarasuG KarasuG KarasuG KarasuG KarasuG KarasuG Bump.
KarasuG KarasuG KarasuG KarasuG KarasuG Bump.
KarasuG KarasuG KarasuG KarasuG Bump.
KarasuG KarasuG KarasuG Bump.
KarasuG KarasuG Bump.
KarasuG Bump.
|