Pnuts CC's Blog Flower & World, Life & Paradise.

JS Regex Analysis v0.1


RegexAnalysis is a tool designed for helping people reading and understanding regex expression. It's written in javascript and tested in IE6~8, FF, Chrome.


Version V0.1


  • Colorize key words
  • Code folding
  • Highly customizable
  • Block Highlight


Invoke in javascript

The following coding get the DOM as the result of analysis. The arg could be string or regex.


For Example :

var regex = /(abc(?:\(|\[)[^w]{0,10}\[\})\)\\/g;

Output :

Feature Manual

Move mouse on the color-bar, the block will be highlighted.


Click color-bar, the block would be folded. Another click would cancel folding.



You can customize it by modified regexAnalysis.config.

The following is the default config :

	config : {
		// example : [ 
		//	leftwrap [ prefix, color, bgcolor ],
		//	rightwrap [ prefix, color, bgcolor ],
		//	color, bgcolor,
		//	underline [ bgcolor, border-color, border-width, mouse-over-color, height ]
		//  folder [ folder-text, color, bgcolor, bordercolor ] 
		//  folder only be effective when underline is effective.
		// ]
		"paren" : [ 
			[ "(", 0, "skyblue" ], 
			[ ")", 0, "skyblue" ], 
			0, 0,
			[ "skyblue", "blue", "5px", "rgb(255,255,128)", "4px" ], 
			[ "...", 0, "rgb(230, 230, 255)", "gray"] 
		"bracket" : [ 
			[ "[", 0, "lightgreen" ],
			[ "]", 0, "lightgreen" ],
			0, 0,
			[ "lightgreen", "green", "5px", "rgb(255,255,128)", "4px" ],
			[ "...", 0, "rgb(230, 255, 230)" , "gray"]
		"curly" : [
			[ "{", 0, "#FFB7DD" ],
			[ "}", 0, "#FFB7DD" ],
			0, 0,
			[ "#FFB7DD", "#FF3333", "5px", "rgb(255,255,128)", "4px" ],
			[  "...", 0, "rgb(255, 230, 230)", "gray"] 
		"vertical-bar" : [ [ "|", 0, "orange" ],0, 0, 0, 0, 0, 0, ],
		space : "2px"

config is a object as you see, and most of its attributes are array(Except space). Zero represent none.

paren represent ( ) , bracket represent [ ], curly represent { }, vertical-bar represent |

image is the space between two color-bars.

Format of each attribute (array) :

[ leftWrap, rightWrap, color, backgroundColor, underline(color-bar), code-folding ]

The color & backgroundColor effect the text IN the wrap. ( Don't contain the wrap itself. )

leftWrap & rightWrap : ( 0 represent no left/right wrap, for example vertical-bar has no wrap )


Format of left/right wrap :

[ wrapText, wrapColor,  wrapBackgroundColor ]

underline / color-bar :


Underline Format: [ background-color, border-color, width, mouse-over-color, height ]

Coding Folding:


Coding Format: [ folding-text, text-color, background-color, border-color ]


It's released under three licenses: MIT, BSD, and GPL. You may pick the license that best suits your development needs.

Comments (160) Trackbacks (2)
  1. Hello.This article was extremely remarkable, especially because I was browsing for thoughts on this matter last Wednesday.

  2. Having said that, be careful not to always be impulsive plus
    tempted while using amount there’re willing to provide and attainable scams with all the trade Here is the only spot where items like the maximum or “default” apr,
    the causes of them to improve your account, a dollar amount for
    almost any fees that could be associated with an accounts, and what these are willing to do today to help you with a account
    if you’d like it. Nonetheless, you should check out different loan companies first?

  3. The garden has the towering most to the delicate which is a clamper
    with yellow-striped leaves. The area has numerous upgrade alternatives and also the soldier choices are functional.

    The capture factor additionally has assets such as off board fire encourage which
    could be held for longer durations.

  4. When water is beneath excessive pressure (like it is in an espresso extraction), it is able to dissolve extra carbon dioxide, which is produced in coffee in the
    course of the roasting course of. When the extracted coffee hits the cup, and the liquid comes back to
    a standard pressure, the liquid can’t hold onto all
    of that fuel, so it involves the top in the form
    of small bubbles — which chemicals in the coffee attach to, in flip creating
    the crema.

  5. It’s awesome to pay a quick visit this web page and reading the views of all colleagues regarding this article, while I
    am also keen of getting experience.

  6. Earlier than we started our doc automation efforts, we rigorously evaluated
    the prices and benefits related to document automation.

  7. I think that everything published made a bunch of sense.

    However, consider this, what if you were to write a awesome
    post title? I ain’t suggesting your content isn’t
    solid, however what if you added a post title that makes people desire more?
    I mean JS Regex Analysis v0.1 Pnuts CC’s Blog is kinda vanilla.
    You ought to look at Yahoo’s home page and note
    how they create article titles to get viewers to open the links.
    You might add a video or a picture or two to get people excited
    about what you’ve written. In my opinion, it would make
    your posts a little bit more interesting.

  8. There’s definately a lot to know about tis topic.
    I really like all of the points you’ve made.

  9. Completely, WW1 crushed an excellent many romanticised ideas about conflict and on a large scale too.

  10. Sonuçta Balkanlar’a her zaman ucuz bilet var, her yeri şimdi görmemiz lazım diye uğraşmayın madem yorucu olmadan gezmek istiyorsanız.

  11. This quiz is nice for a lot of situations, such as events,
    social teams, pub quizzes or faculty groups.

  12. That is a excellent tip particularly to individuals fresh
    to the blogosphere. Short but very accurate info
    Thanks a lot for sharing this. Essential read article!

  13. I think everything wrote made a great deal of sense. However,
    what about this? what if you added a little information?
    I am not saying your information is not good., however suppose you added a title that
    makes people want more? I mean JS Regex Analysis v0.1 Pnuts CC’s Blog is a little vanilla.
    You ought to look at Yahoo’s front page and watch how they write post titles to grab people to open the links.
    You might add a related video or a pic or two to get people excited
    about what you’ve written. Just my opinion, it might make your posts a little livelier.

  14. Can I simply say what a comfort to discover somebody that actually knows what
    they’re talking about over the internet. You certainly realize how to bring a
    problem to light and make it important. More people should check this out
    and understand this side of your story. I was surprised you’re not more popular since you surely possess the gift.

  15. Music is first for the home-heads, an obvious reality heard
    in all their originals, remixes and immaculately selected units.

  16. This is the right webpage for everyone who hopes to understand this topic.

    You understand so much its almost tough to argue with you (not that I personally will need toHaHa).

    You definitely put a brand new spin on a subject that has been written about
    for many years. Excellent stuff, just great!

  17. five hundredrevolting disgustingHacernuclear familytwo nuclear familyreformasnuclear
    family five hundrednuclear familyrevolting disgustingintegralesrevolting disgusting twoextended
    familyimplicarevolting disgustingfive hundred twoextended familyplanificarextended familytwo nuclear familyrevolting disgustingconnuclear family nuclear familyrevolting disgustingunrevolting disgusting five hundredtwonuclear familyrevolting disgustingparrevolting disgustingtwo
    five hundrednuclear familyrevolting disgustingdetwofive hundred twoextended familyrevolting disgustingmesesrevolting disgustingnuclear familyfive
    hundred five hundredtwonuclear familyrevolting disgustingdeextended familytwofive
    hundred antelaciónextended family, five hundredtworevolting disgustingteniendonuclear familytwofive hundred enrevolting disgustingextended familytwo tworevolting disgustingcuentarevolting disgustingnuclear familytwo tworevolting disgustingdetwofive hundred five hundrednuclear familyrevolting disgustingquetwo twonuclear familyestamosnuclear
    familytwofive hundred tworevolting disgustinghablandorevolting disgustingfive hundred five hundrednuclear
    familyrevolting disgustingderevolting disgusting five hundredtwoextended
    familydarle five hundredextended familyrevolting disgustingunrevolting disgustingextended familyfive hundred twonuclear familyrevolting disgustinggirorevolting disgustingextended familytwo derevolting disgustingextended familytwo five hundrednuclear family180ºtwofive
    hundred five hundrednuclear familyarevolting disgustingnuclear familyfive hundred twonuclear familyrevolting
    disgustingturevolting disgustingnuclear familyfive hundred five hundredextended familyviviendarevolting disgustingtwofive hundred.

  18. Im not too a good deal of online reader to tell the truth however, your sites great, keep it up!
    I’ll go ahead and bookmark your site to come back later.
    Thanks a lot

  19. Visit for Rajdhani day, Rajdhani Night, Milan Day, Milan Night, Mumbai Result, kalyan Game and Only
    web site that present assured satta matka game to its customer.

  20. Makіng money onlinne uzed tⲟ juѕt аbout require уоu to have ʏour own personal site, items
    tⲟ sell and some marketing savvy.

  21. You should buy on-line quite a lot of private care merchandise, which embody female hygiene items
    like sanitary napkins, tampons, maternity pads
    and underpads, hair removing creams from Anne French, Fem, Veet and bikini trimmers & shavers from Philips.

  22. I wish faculties in my native space would see the connection between music and learning, my kids usually come home from college saying this and
    that was boring.

  23. We offer free proofs throughout the creation process, present one-on-one customer support,
    and offer bobbleheads in portions of 1 to 1 million!

  24. French warplanes and a US Predator drone on Thursday morning attacked a giant convoy of more than 100 four-wheel drive vehicles fleeing west out of Muammar Qaddafi’s hometown of Sirte.

  25. I want to to thank you for this good read!! I absolutely
    enjoyed every small amount of it. I’ve got you book-marked to consider
    new stuff you post

  26. Most recycling and trash removing providers provide their business to the residential market as well as for waste
    management, I was stunned to seek out poop elimination service added to the record,
    and you might be most likely aware of rubbish disposal repair.

  27. Most individuals in the 80s got style pattern ideas from TELEVISION reveals like:
    Different Strokes, Dynasty, Silver Spoons, Miami Vice, Household Ties,
    The Facts of Life, etc.

  28. If you want to set up a fantastic auto business or anything that has to do with people,
    you need to come out clear from the get go. Do not sale rubbish to people of us.

  29. Amazing issues here. I’m very happy to look your article.
    Thanks a lot and I am taking a look ahead to contact you.
    Will you please drop me a mail?

  30. Van Loon says it is up to parents to make sure kids haven’t got entry to jewellery intended for adults.

  31. Make ѕure yߋu use this mobile strike crack аѕ ѕoon as pօssible
    becаᥙse there are high chances thɑt this would not reaply ԝork for ѕome intervals of tіme, bbut wee will kеep updating іt.

  32. Aw, this was an extremely good post. Taking the time and actual effort to
    make a great article but what can I say I put things off a whole lot and
    never seem to get anything done.

  33. No Dia dos Namorados, dá para surpreender par também com uma cesta
    bem elaborada de piquenique.

  34. I want to to many thanks for this great read!!
    I absolutely loved every amount of it. I have got you book marked to check out new stuff you post

  35. Aw, this was a really good post. Taking the time and actual effort to generate a top notch article but what can I say I hesitate a lot and don’t
    seem to get anything done.

  36. For all your numbers that go in to the One M9, we found its video camera to be significantly worse generally
    use compared to the iPhone 6’s.

  37. Gold plated HDMI band are available for purchase for better quality and also long range.

    Bundled in the BDX580 is Nero Media – Home 4 Essential
    software. Vga to dvi cable walmart The IPS panel is further enhanced by way of a bright energy-saving LED backlight.

    However, I’ve been enjoying Blu-Ray in my smaller HDTV well enough all of which will continue to accomplish so for which will apt to be several
    more months. If you’ll be able to use different connections in your monitor or TV, exactly
    what do you prefer.

  38. If you purchase an expensive new game, make sure to purchase a lengthy warranty or some
    insurance to go by using it. Keeping your pc’s utmost upgrade potential in mind goes quite a distance in knowing what games you might be capable of playing inside coming months
    and years. Ibuypower complaints The hardcore gamer understands
    their gaming pc inside and out.

    I wouldn’t give a lot of thought about which drive to develop-into the gaming rig for 2 reasons.
    There is plenty offered coming from a gaming computer, plus they continue to surge
    in popularity.

  39. The initial design of the shaver was meant to supply on dermititis and only attached to a
    wall outlet. This way, you will be able to remove undesired facial hair
    in only one sweep of the razor on the face. Electric razor tricycle Without question, all this due to Philips razor any particular one could
    possess wonderful look and feel.

    Nevertheless, they haven’t absolutely replaced simple razors though.
    A shaving straight razor gives an end shave solely with a shaving cream that creates
    good leather.

  40. And forget about the caffe latte espresso at your local coffee bar.
    Kidney stones often cause severe pain in his attempt to pass through the ureter on their way
    to the bladder. Convert recipes to metric

  41. Especially for hotels or offices, ordering seasoned
    flowers will give variations to your image and interior with the office.
    In different ways, good still life pictures tend to be challenging to capture.
    Flower gift images You can have the image of your spouse, children,
    parents, and friends, pet or fun holiday as the

    Some people use flowers in order for making medicines or even incorporate within their religious
    practices. On the other Sunday of May, provide the gift of silk flowers,
    as an alternative to regular flowers this season.

  42. People struggling with obesity should do routine workouts, simply have balanced diet aside from
    consuming the weight loss supplements. Since muscle burns calories,
    it really is yet another key of how to shed weight without weight loss pills both successfully and permanently.
    Does abidexin really work? All these pills will not suits everyone as health of
    an individual differ from each other plus have disadvantage.

    With the arrival in technology, congratulations, you may purchase weight
    loss supplements online. Do not take slimming capsules if you could have a family reputation of high high blood pressure, thyroid or prostrate
    problems, or heart or mental health illnesses.

  43. A wide range of events for example weddings, parties, and outdoor occasions where we want to consider pics are
    complete of hazards that will possibly endanger your treasured camera.
    Also, you’ll want to check out this Go – Pro Motorsports HERO
    review. Good underwater cameras That is the reason many celebrity, business tycoons, elite
    people wish to wear watches of showing their power and

    This powerful machine may make exacting cuts for the people intricate jobs without having to
    sacrifice speed. A massive chatting point for this trendy coach may be the
    reduce midsole which it has in contrast for some other variations with the barefoot
    like array that Nike offers.

  44. Note how the transmission of signal in the
    event that of CCTV method is not carried out in an open manner like that from
    the broadcast televisions. Some DVR’s include software package
    that automatically converts the device file to
    wording for straightforward transcription. Cctv 4 channel dvr To maintain the security guards are extremely costly in comparison to the CCTV Maintenance.

    Placing of the CCTV at the best place is also equally important in order to make the purpose of CCTV fruitful.
    This is which some channel dvr as well as the 16 channel dvr play a critical part.

  45. Following some of those tips on connecting your pc to the tv will help
    you receive started with your new setup. A modest system can cost below
    $300 if you meet up your old stereo, DVD player and VCR to your Plasma TV.
    Dvd player with hdmi input and rca output That is one more approach utilized to reduce interference; only this design seems at inner, not exterior,

    One with the clear operational features of integrating this
    solution in just a CCTV installation is always that it affords the
    user two unique output formats ‘ HDMI and CVS. Equipped with plug and play functionality, the
    4×4 HDMI Matrix like other switches won’t require additional software or device drivers
    for operation.

  46. I polled my friends and family because of their top laptop backpacks and the Oakley
    Computer Bag 2. Most laptop include one year’s warranty that is great but do look at how they
    will take care of repairs or replacements. Best laptop for graduate student There are kinds of
    model for sale in Dell laptops, price of those laptops vary according
    to their configuration.

    Reliability information isn’t easy to get, and thus
    most consumers don’t even put major thought involved with
    it, assuming one laptop is about as reliable because other.
    You want to call Student Life to inquire about where the experienced students are to aid your freshman conform to college life.

  47. I got my first bunny vibrators for ladies as being a
    gift from my room-mate. Keep all vibrators beyond water to counteract
    corrosion of metal parts (except, certainly, for vibrators that happen to be waterproof).

    Toys in pussys Porous materials including cyberskin and rubber require a lttle
    bit more care as bacteria can hide in the pores.

    She says gadgets like smart phones are not only a distraction to the love connection process, she fears they hinder sleep as well.

    The wonderful part regarding the toy is after full insertion, it might
    be hands free and tried in various positions, allowing a women to educate yourself regarding her body with or without a person.

  48. Wu Yi tea together with consuming under 1500 calories a
    day and exercising for no less than 30 mins thrice per week WORKS!

  49. The lady’s condition was stabilized at Wyndham Distract Hospital
    and she or he was to be flown east to the larger Royal
    Darwin Hospital for additional remedy, mentioned Western Australia Country Health Service spokesman Peter Cogan.

  50. Another manner of taking a look at this is that all Premier League
    clubs already obtain more cash from their home league TV deal than all however
    5 different European Golf equipment: Real Madrid,
    Barcelona, Juventus, Inter and Milan.

Leave a comment