Need a regular expression to do the following

I need a regular expression that will simply return everything (yes, everything) after a one CRLF.

Right now I have "\n[A-Z0-9]+" which works, except that it is padding the return value with a non-printable ascii character.  Could it be including the LF in the result?  What should my regular expression be changed to to fix this?
LVL 15
David L. HansenCEOAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AngryBinaryCommented:
Yes. It is matching the newline because you've included it in the match. To specify a subset of your regex, use a match group by putting the bit your interested in separating inside of parentheses:

 "\n([A-Z0-9]+)"

... and depending on the language that you are invoking the regex match from, there is usually a method of getting the matches from each individual match group. Refer to documentation, or let us know what language you are using.
0
David L. HansenCEOAuthor Commented:
"\n([A-Z0-9]+" returns the same thing.  I understand now that I was hardcoding the LF in my results.  I want to look for CRLF then grab everything after it.
0
ozoCommented:
what regular expression language are you using, and how are you getting the return value?
0
Exploring SharePoint 2016

Explore SharePoint 2016, the web-based, collaborative platform that integrates with Microsoft Office to provide intranets, secure document management, and collaboration so you can develop your online and offline capabilities.

Terry WoodsIT GuruCommented:
This should do it:
(?<=\n)([A-Z0-9]+
0
Terry WoodsIT GuruCommented:
Sorry, missed the ending bracket (but actually don't need the brackets):
(?<=\n)[A-Z0-9]+
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David L. HansenCEOAuthor Commented:
The SIRE Document Management tool has a user scripting area (just a gui window) where the user can put in a regular expression.  I'm not sure which flavor of regex SIRE uses.  The results are simply shown in the same gui.
0
Terry WoodsIT GuruCommented:
Or in case you have more than just capital letters and numbers to be captured, use:
(?<=\n).*
0
David L. HansenCEOAuthor Commented:
I think we've got it! Thank you.  
The window for building and testing expressions returns exactly what I want; however, when applied to a real document, blanks are returned.  I think that is just a SIRE setting problem or something.  I'll keep working that issue, but I certainly can award the points now.
0
David L. HansenCEOAuthor Commented:
Perfect!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Regular Expressions

From novice to tech pro — start learning today.