> What is the proper way to say I will accept any kind of character, letter,
digit, white space, special or anything else? I'm trying to create this
basic idea of a regex.
(aSpecificString)(anyPosibleCharacter)(aSecondSpecificString)
>
> Does that make sense, I guess a fairly real world example would be to
search for a set of tags, <P> lets say that could have anything between
them.
> (<p>)(What goes here?)(</p>)
Something like this would work:
<p[^>]*>([\s\S]*?)<\/p>
However, it is not going to work on nested tags, like divs:
<div[^>]*>([\s\S]*?)<\/div>
would not be accurate here:
<div>
<div>blah</div>
</div>
In this case, it is going to find the first opening div along with the inner
closing div.
-------------------------------------------
Tom Muck
co-author Dreamweaver MX 2004: The Complete Reference
http://www.tom-muck.com/
Extending Knowledge, Daily
http://www.CommunityMX.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:21:807
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/21
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:21
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54