AlliDeacon AlliDeacon - 5 months ago 5x
Perl Question

PERL Regex help matching a string in a field

I currently have a field that looks like this.

item description is blah ablha blabh albhalbh #thisisitemnumber x/skid)

I am trying to extract the
portion. I currently have this:


But using that I get everything after the "#" even the whitespace.
Any help is appreciated!

Thanks :)


You are matching any char . any number of times * until non-space \S.

You want non-space one or more times:


This presumes that there should be something after #, thus the +