Archive for the ‘RegEx’ Category

RegEx: Selecting html tag content

Wednesday, September 23rd, 2009

RegEx to select the content of div.code

<div\b class=.code[^>]*>([\s\S]*?)</div>

Result:

<div class="cdeBlock">
<div class="cdeLbl">HTML: /snowReport?resort=Tahoe</div>
<div class="code html"><p>Hello, there are ${m.newSnowInch} inches
 of new Snow in ${r.p.resort} </p></div>
</div>

<div class="cdeBlock">

RegEx: Upper Case or Camel Case Selector

Monday, April 13th, 2009

RegEx to select all the caps and numbers

([A-Z]|(\d*\d))

Result:

Camel With23Some Numbers56

RegEx: Java Quick Start and Tips

Wednesday, April 8th, 2009

RegEx: Best RegEx Eclipse Plugin QuickRex

Wednesday, November 12th, 2008