regex query



I've been given a regex that matches white space between the last \w on
a line and the \n at the end of the line. The regex is:

\s+(?=\n)

I understand the \s+, what is going on with the (?=\n) ?

Thank you for any help you can give with this.

Justin.

--
Justin C, by the sea.
.



Relevant Pages

  • Re: Need Regex for phone number
    ... Justin C, by the sea. ... I was looking for regex that would identify the phone number in a ... txt string regardless of how it was formatted. ...
    (comp.lang.perl.misc)
  • Re: Return Data Regex Doesnt Isolate - Yikes
    ... "Justin, get off your arse and write some regular expression magic!". ... > I'm having a bad regex day and can sure use your help, ... It's purpose is to isolate all> data from the start of a string begining with 200~ to the end of the string> but before the start of the next 200~. ... > Here's some test data ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: regex query
    ... Justin C wrote: ... The regex is: ... It finds the pattern by inspecting the surroundings ... but without matching to them. ...
    (uk.comp.os.linux)