Test Post

6 views
Skip to first unread message

Daniel Goldman

unread,
Feb 3, 2013, 5:25:31 PM2/3/13
to re...@googlegroups.com
Please excuse this post. I just needed to test how GT
and LT symbols, in the context of regex, display in
google groups. Are they mangled by confusion with
HTML use? Couldn't find a google groups "sandbox". Who
knows, tests might find something useful for the group...

#1 - Using \bfoo\b syntax:

s:(.*)\bfoo\b(.*)\n(.*)\bbar\b(.*):\1FOO\2\n\3BAR\4:

#2 - Using \<  \> (BackSlash-LT BackSlash-GT) syntax:

s:(.*)\<foo\>(.*)\n(.*)\<bar\>(.*):\1FOO\2\n\3BAR\4:

#3 Using HTML entities for GT and LT:

s:(.*)\&lt;foo\&gt;(.*)\n(.*)\&lt;bar\&gt;(.*):\1FOO\2\n\3BAR\4:

#4 \<foo\> is foo surrounded by BackSlash-LT and BackSlash-GT.
#5 \&lt;foo\&gt; is same as #4, with HTML entities for LT and GT.

#6 &bull; is HTML bull entity. Displays as bullet or as literal?
#7 &nbsp; is HTML nbsp entity. Shows space or literal?

#8 < is LT all by it's lonesome.
#9 &lt; is also LT, but as HTML entity.

#10 > is GT all by it's lonesome.
#11 &gt; is also GT, but as HTML entity.

#12 \< is BackSlash-LT all by it's lonesome.
#13 \&lt; is also BackSlash-LT, but LT as HTML entity.

#14 \> is BackSlash-GT all by it's lonesome.
#15 \&gt; is also BackSlash-GT, but GT as HTML entity.

#16 <strong>Hi</strong> is Hi surrounded by "strong" tags.
#17 <i>Hello</i> is Hello surrounded by "italic" tags.

#18 <br> is HTML br tag. Shows as literal?
#19 <p> is HTML p tag. Shows as literal?

Prashant Patole

unread,
Feb 11, 2013, 12:58:11 AM2/11/13
to re...@googlegroups.com
please clarify your problem in general terms.

make it very clear
what are you trying to do?
where...?
what's in?
what's out..?

its only then people will try to help you.





--
--
Sub, Unsub, Read-on-the-web, tune your personal settings for this Regex forum:
http://groups.google.com/group/regex?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Regex" group.
To unsubscribe from this group and stop receiving emails from it, send an email to regex+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages