Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: finding { and }

by stefan k (Curate)
on Oct 17, 2001 at 15:14 UTC ( #119361=note: print w/ replies, xml ) Need Help??


in reply to finding { and }

Hi,
are you sure that this will really solve your problem? What about curly braces in comments?
I don't think I'd reinvent the wheel this way. I'd rather try to get some already more sophisticated machine setup to fullfill my wishes. Maybe one could use the programming mode of his/her favorite editor, which probably already does some checking like this. I could also imagine that indent and gcc or some TAGs creating programms might be helpfull. Or in XEmacs you might want to call M-x occur RET [{}] (I had rather used a tt-font here, but I needed to use code-Tags to get the brackets) or maybe M-x count-matches RET { and then compare to the count of }.

I know that this doesn't quite answer your question, which has been adressed above. It just shall save you from further problems...

Regards... Stefan
you begin bashing the string with a +42 regexp of confusion


Comment on Re: finding { and }
Download Code
Re: Re: finding { and }
by Hofmator (Curate) on Oct 17, 2001 at 15:26 UTC
    (I had rather used a tt-font here, but I needed to use code-Tags to get the brackets)

    What about [this] :-) ??

    Produced with [ and ]

    -- Hofmator

      Thanks!
      I even searched HTMLlat1.ent from the HTML 4.0 DTD distribution but to no results. (Even now, knowing the solution would have been 091, I can't find'em there)
      I pinned them to the monitor as yet another post-it note (YAPN) ;-)

      Regards... Stefan
      you begin bashing the string with a +42 regexp of confusion

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://119361]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2014-07-26 01:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls