Re: regex
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
A string is an array of char. I believe the fastedst way would be to loop
through the chars in the string, and count the '@' chars. Once you reach 5,
you return true. If you reach the end of the string without reaching 5, you
return false.
--
HTH,
Kevin Spencer
Microsoft MVP
Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
"ohmmega" <shodan@xxxxxx> wrote in message
news:1186474986.085973.304160@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
i need to know if there are exactly 5 @'s with or without text in
beetween.
i thought compiled regex would be faster than splitting and .length.
nethertheless, if you guy's say "OH NO!!!", i've no reason to demand
on it.
.
Relevant Pages
- Re: [Emacs] Kommentieren
... ;; completely up to the user to decide, what the string ... "Chars preserved of STRING. ... `CHARS-PRESERVE' must be a parentized expression, ... (de.comp.editoren) - Re: FASTEST way to try all strings (a until ZZZZZZZZZZZZZZZZZZZZZZZZ)
... > It will be a very huge table so I in my opinion. ... > When it would be used, than it should be converted to a string, however ... >> How would an array of Byte be any faster then an array of Char? ... >> array of Byte is needed, however the OP suggested Chars (A to Z, a to z ... (microsoft.public.dotnet.languages.vb) - Re: FASTEST way to try all strings (a until ZZZZZZZZZZZZZZZZZZZZZZZZ)
... > It will be a very huge table so I in my opinion. ... > When it would be used, than it should be converted to a string, however ... >> How would an array of Byte be any faster then an array of Char? ... >> array of Byte is needed, however the OP suggested Chars (A to Z, a to z ... (microsoft.public.dotnet.general) - Re:(9corr) string
... and I want to remove the month in the timestamp for each of the string ... Then advance 4 chars, and copy from +2 to the current pointer until you ... pointer past the year part to reach the month part. ... this guarantee is 'memmove'. ... (comp.lang.c) - Re: speed question
... chars of column A and first 2 of column B. ... as it is a string contatenation. ... > I want to have smart search like iTunes or something like that. ... > Dzemal Tipura (Dzemo) - MCP ... (microsoft.public.dotnet.framework.adonet) |
|