Re: Checking User Input



> I have a textbox where the user could input a string or a
> list of strings separated by ";". I use the split function
> to get an array. Now, my problem is that I need a way of
> controling that ";" is used and not other separator
> like ,.: or anything else. I know a regular expression
> could be used to enforce this rule, but I am not familiar
> with regexpr at all. Could someone give a hand on how to
> create the regexpression?

What characters are allowed to be in the list items themselves?
Specifically, can there be anything other than letters of the alphabet
or digits? If so, what characters?

Rick - MVP

.



Relevant Pages

  • Re: Regular Expression Function
    ... I want a regular expression to compare sentences and then rate them as ... I have an array with a list of other phrases like so... ... characters will throw things off. ... "In an hour the system will go down for maintenance". ...
    (alt.php)
  • Re: Regular Expression Function
    ... I want a regular expression to compare sentences and then rate them as ... I have an array with a list of other phrases like so.. ... These will be stripped from the input first. ... characters will throw things off. ...
    (alt.php)
  • Re: How determinate if there no symbol in a string.
    ... characters, I would use a regular expression - because then your char ... array would become rather long. ... If I *were* to use a regular expression, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Regular Expression Function
    ... I want a regular expression to compare sentences and then rate them as ... I have an array with a list of other phrases like so.. ... characters will throw things off. ...
    (alt.php)
  • Re: sending echo to all clients
    ... I did initialize it up properly, ... There is only one array and that is an array of pollfd structures named ... as an array of characters only but then I can't because sendsends bytes ... you receive C-style strings, so there's really no point to doing it. ...
    (comp.unix.programmer)

Loading