> The "!" is escaped with the backslash (\) and then the use of {3,} means "3
> of the previous character", so:
Sorry, {3,} means "3 or MORE of the previous character"… if you only want to
match 3 characters, you need to use {3,3}:
\!{3,3}
Ken Ray
Sons of Thunder Software, Inc.
Email: k..
On Mar 28, 2012, at 10:19 PM, Bill Vlahos wrote:
> I am building a regular expression to find a set of question marks and
> exclamation points. For example ??? or !!!.
put "This is a !!! test" into tData
get matchChunk(tData,"(\!{3,})",tStart,tEnd)
put tStart,tEnd
--> 11,13
The "!" is escaped
On Mar 28, 2012, at 9:39 AM, I wrote:
> I have a bias (often warranted) towards using LC's text and chunking
> capabilities rather than LC. If you know that the runs of question marks and
> exclamation points will alway be length = 3 then you could avoid Regex: ...
Sorry, meant to say "I have a
On Mar 28, 2012, at 11:19 PM, Bill Vlahos wrote:
> I am building a regular expression to find a set of question marks and
> exclamation points. For example ??? or !!!.
>
> These are special characters so they mean something to a regular expression.
>
> How do I find them in the text?
>
> If I
pm
Subject: Regular expression escape characters
I am building a regular expression to find a set of question marks and
exclamation points. For example ??? or !!!.
These are special characters so they mean something to a regular expression.
How do I find them in the text?
If I want to find a wo
I don't think punctuation are word characters, so the \b might not be working
right. Try \!\!\! without the \b and see if that matches something. If it
does, then work on getting the boundary conditions right. -- Dar
On Mar 28, 2012, at 9:19 PM, Bill Vlahos wrote:
> I am building a regular e
I am building a regular expression to find a set of question marks and
exclamation points. For example ??? or !!!.
These are special characters so they mean something to a regular expression.
How do I find them in the text?
If I want to find a word such as "Bill" I can matchText with (\bBill\b)