Re: [Slightly OT] Is this possible with a regex?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Yes it is. Check out the documentation for an explaination of how to do it.

RR

"Cool Guy" <coolguy@xxxxxxx> wrote in message
news:l7l1utqkp06a.dlg@xxxxxxxxxxxxxxxxxxx
> Is it possible, with a regular expression, to split a string by spaces,
> *not* splitting substrings between quotation characters?
>
> e.g.:
>
> one two "three three" four "five five" six
>
> -->
>
> 1: one
> 2: two
> 3: three three
> 4: four
> 5: five five
> 6: six


.



Relevant Pages

  • Re: how to use regex library
    ... Do I have to call regfreeevery time I use a regular expression, ... If I never call regfree(), do I have a memory leak? ... What's the difference between regcomp() and regexec? ... the documentation, or ever reads documentation, ...
    (comp.lang.c)
  • Re: how to use regex library
    ... Do I have to call regfreeevery time I use a regular expression, ... the documentation, or ever reads documentation, ... target string and length of matched string. ... (There can be up to NSUBEXP that the library will handle, ...
    (comp.lang.c)
  • Type object returned by the re.compile function
    ... According to the documentation, re.compile returns a "regular expression object". ... Traceback: ... AttributeError: 'module' object has no attribute 'RegexObject' ...
    (comp.lang.python)
  • Re: Multibyte regexps...
    ... I found some documentation about this. ... My testing tells me that only setting the $KCODE global var is enough to get ... > Do I have to put it only in regexps with japanese characters or any regexp? ... > When using Regexp.new to construct the regular expression how can I set the ...
    (comp.lang.ruby)
  • regular expression behaviour
    ... theoretically the regular expression matches the string, ... The documentation says that the * ...
    (comp.unix.programmer)