string-length
Editing a regex that isn't mine, not sure how to adjust it for needs
I have a regex that was written for me for passwords: ~^[a-z0-9!@#\\$%\\^&\\*\\(\\)]{8,16}$~i It\'s supposed to match strings of alphanumerics and symbols of 8-16 characters.Now I need to remov[详细]
2023-02-28 18:40 分类:问答Python string length recursion
I\'m blanking out trying to write a simple function to count the string length recursively. I can do sums, fibonacc开发者_如何学JAVAi, and factorial easy but I\'m trying to create the simplest functi[详细]
2023-02-24 16:48 分类:问答predict len of an sprintf( )'ed line?
Is there a function around somewhere that I can use to predict the space that sprintf( ) will need? IOW, can I call a function size_开发者_StackOverflowt predict_space( \"%s\\n\", some_string ) that w[详细]
2023-02-18 13:04 分类:问答Not able to store large string in db in RoR 3
I\'m only allow to store around 250 characters i开发者_JAVA百科n db column. When I try to add large string it automatically omit the extra character. The type I used in scaffold is string. How can I s[详细]
2023-02-15 22:18 分类:问答Select rows from database by strlen
Is there a way to select database table ro开发者_StackOverflowws where a given value is a certain length, for example, less than 5 chars long?[详细]
2023-02-11 04:54 分类:问答How can I estimate the disk size of a string with JavaScript?
I need to try to estimate the DISK size of a text string (which could be raw text or a Base64 encoded string for an image/audio/etc) in JavaScript. I\'m not sure how to estimate this. The only thing w[详细]
2023-01-28 01:19 分类:问答How to take string length of a String array?
I have declared a st开发者_JS百科ring array String s; I tried finding the length of the string by giving strlen(s) but it didnt work . How to get the length of the string ?The function strlen does no[详细]
2023-01-26 12:38 分类:问答String length without len function
Can anyone tell me how c开发者_如何学Can I get the length of a string without using the len() function or any string methods. Please anyone tell me as I\'m tapping my head madly for the answer.[详细]
2023-01-21 01:29 分类:问答Finding field with longest length in a column
How do I fi开发者_运维问答nd the field with the longest length of a specific column in a MySQL table?MySQL has a lot of string functions you can use:[详细]
2023-01-08 19:39 分类:问答PHP: whats the total length of a post global variable?
I was wondering if anybody knows the total length t开发者_如何学Chat a post global could be. e.g:[详细]
2022-12-20 04:04 分类:问答