in reply to Regex: Ignore \n in \S
You don't show the code you use, so it's hard to say how your regular expression "returns" something.
Maybe you want to use ([^\n]+) instead of the (\S+)? But \n would be in the \s class, so your \S shouldn't capture a \n. Please show the actual code you use.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex: Ignore \n in \S
by manav_gupta (Acolyte) on Sep 12, 2010 at 20:45 UTC | |
by Corion (Patriarch) on Sep 12, 2010 at 20:50 UTC | |
by ikegami (Patriarch) on Sep 13, 2010 at 00:16 UTC | |
by manav_gupta (Acolyte) on Sep 12, 2010 at 20:55 UTC | |
by Marshall (Canon) on Sep 12, 2010 at 21:25 UTC |