Grep search

29 views
Skip to first unread message

Mardulia

unread,
Jul 2, 2012, 9:59:13 AM7/2/12
to joom...@googlegroups.com
This is not strictly speaking a Joomla question- but I bet someone out there will know the answer. 

Why does a GREP search not find this: <div.+?</div> 

I want to use GREP to strip out 15 or so instances of these tags and what's between them: <div class="result-description"> and </div> But GREP only gives me an annoying beep and wont find this. I can do it all by hand of course, but it's driving me crazy that this isn't working.

FYI: I'm using Textwrangler to clean the code out of some source code so I can use the copy in a newsletter, and I'm doing it this way to retain the a tags. 

Any advice? 

Thanks A.

Matt Thomas

unread,
Jul 2, 2012, 11:05:38 AM7/2/12
to joom...@googlegroups.com
Hi Andrea,

With Textwrangler using the PCRE flavor of regex, I tested this at http://www.regextester.com/ and it seems to work. Both <div.+?</div> and <div.+</div> matched <div class="result-description">bob</div> of <div class="result-description">bob</div><span>.

Could this be an issue with Textwrangler versus being an issue with your expression?

Best,

Matt Thomas
Founder betweenbrain
Phone: 203.632.9322
Twitter: @betweenbrain




--
You received this message because you are subscribed to the Google Groups "Joomla! User Group New England" group.
To view this discussion on the web visit https://groups.google.com/d/msg/joomlaug/-/bM-Xe-hSlYIJ.
To post to this group, send email to joom...@googlegroups.com.
To unsubscribe from this group, send email to joomlaug+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomlaug?hl=en.

Andrea Pluhar

unread,
Jul 2, 2012, 12:10:38 PM7/2/12
to joom...@googlegroups.com
Thanks for the link to this site! And I think you're right, it's TextWrangler. They have a support line- so I'll go bug them! ;-)

Thanks again!

Andrea Pluhar
160 Briar Lane
Wellfleet MA 02667

Creative Services: http://pluharcreative.com

Matt Thomas

unread,
Jul 2, 2012, 2:45:25 PM7/2/12
to joom...@googlegroups.com
Welcome and good luck!

Best,

Matt Thomas
Founder betweenbrain
Phone: 203.632.9322
Twitter: @betweenbrain




Andrea Pluhar

unread,
Jul 2, 2012, 5:17:58 PM7/2/12
to joom...@googlegroups.com
I figured it out. Textwrangler was reading invisibles... Who knew?

Andrea Pluhar
160 Briar Lane
Wellfleet MA 02667

Creative Services: http://pluharcreative.com

Matt Thomas

unread,
Jul 2, 2012, 5:18:38 PM7/2/12
to joom...@googlegroups.com
Interesting. Glad you figured it out!

Best,

Matt Thomas
Founder betweenbrain
Phone: 203.632.9322
Twitter: @betweenbrain




Andrea Pluhar

unread,
Jul 2, 2012, 5:19:30 PM7/2/12
to joom...@googlegroups.com
This business is always interesting! Hahahah!

Andrea Pluhar
160 Briar Lane
Wellfleet MA 02667

Creative Services: http://pluharcreative.com

Matt Thomas

unread,
Jul 2, 2012, 8:12:27 PM7/2/12
to joom...@googlegroups.com

Every day is a challenge and a great learning opportunity.

Best,

Matt

Sent from my phone that uses an open source operating system.

Reply all
Reply to author
Forward
0 new messages