Re: Leading Space with REGEX
- From: "Paul Lalli" <mritty@xxxxxxxxx>
- Date: 29 Mar 2007 10:04:38 -0700
On Mar 29, 12:20 pm, jerryacole...@xxxxxxxxx wrote:
I have the following regex. It is matching what I want( /BIG/TRUCK),
but it is also included the leading space. Is there anyway to
suppress the leading space.
\b[^"|']/\w+/\w+\b
String:
TYPE /BIG/TRUCK
I don't understand your question. You're very specifically looking
for "word boundary; anything other than double quote, vertical-bar, or
single quote; slash; one or more word characters; slash; one or more
word characters; word boundary". The space character matches the
"anything other than..." portion of that. If you don't want to match
that space character, why are you putting that token in there?
To put it another way: Please post a SHORT but COMPLETE script that
demonstrates both what you're doing, and the output that demonstrates
what you want to do.
Paul Lalli
.
- Follow-Ups:
- Re: Leading Space with REGEX
- From: jgraber
- Re: Leading Space with REGEX
- References:
- Leading Space with REGEX
- From: jerryacoleman
- Leading Space with REGEX
- Prev by Date: Re: Troubleshooting cpan
- Next by Date: Re: Beginning OO help
- Previous by thread: Leading Space with REGEX
- Next by thread: Re: Leading Space with REGEX
- Index(es):
Relevant Pages
|
|