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.
In reply to Re: Regex: Ignore \n in \S
by Corion
in thread Regex: Ignore \n in \S
by manav_gupta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |