reg ex question - finding a lack of white space

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lawrence

    reg ex question - finding a lack of white space

    Is this the correct way to find a string of characters that goes 40
    spaces without any white space?

    [^ ]{40}


    Would this find a stretch with no white space, newlines, or tabs?

    [^ \n\t]{40}
  • Garp

    #2
    Re: reg ex question - finding a lack of white space


    "lawrence" <lkrubner@geoci ties.com> wrote in message
    news:da7e68e8.0 405311903.1787c caa@posting.goo gle.com...[color=blue]
    > Is this the correct way to find a string of characters that goes 40
    > spaces without any white space?
    >
    > [^ ]{40}
    >
    >
    > Would this find a stretch with no white space, newlines, or tabs?
    >
    > [^ \n\t]{40}[/color]

    You again!

    \S (as opposed to \s) is non-whitespace.

    Garp


    Comment

    Working...