RegEx Monday, Aug 19 2013 

https://xkcd.com/208/

http://gskinner.com/RegExr/

RegEx in Notepad++
also see –blog.creativeitp.com

Long string – space every two characters

Search:  (.)([0-9a-f])
Replace:   \1\2

*Note:  search brackets () are represented by Replace \#.

Remove lines NOT(^) beginning with number:

^[^\d].*
^[^0-9].+
Replace: (empty)

Only lines with single (multi-digit) number

^[\d]+$

Add leading 0 to string of 7bit binary

([01][01][01][01][01][01][01])

0\1

Find text reference in youtube transcripts

<text start=”[\d]{1,5}” dur=”[\d]{1,5}”>

Lines NOT Starting with “http
^[^”http].+
Starting with “http
^[“http].+
Starting with “, trim after first space
^([“][\S]+).*
\1

Unique Characters:

^(?:([A-Za-z])(?!.*\1))*$
Clean Lat,Long,Name
.+\[(-?\d{0,3}\.\d{4,6}),(-?\d{0,3}\.\d{4,6}).+title=”.+”>(.+)</a>.+
.+AP:.+\r\n
– .+\r\n

 

Non consecutive

(.)(?!\1)

*optionally

“select Mark All. This will place blue circles, like marbles, in the left gutter – these are line bookmarks. Then just select from main menu Search -> Bookmark -> Remove bookmarked lines.” -Peter Perháč

C# connecting to SOAP (WSDL) Friday, Feb 24 2012 

Tips:

.asmx  – shows list of method/services available
https://web.site/WebApp/Services/ServiceApp/ServiceList.asmx

 

SOAPAction – site URL withOUT .asmx and /ServiceName
https://web.site/WebApp/Services/ServiceApp/ServiceList/ServiceName

 

.UploadString – if using WebClient(), this is the same as the .asmx link
https://web.site/WebApp/Services/ServiceApp/ServiceList.asmx

 

NOTE: drop the .asmx add a / and ServiceName 

Better forms – javascript tricks Monday, Dec 12 2011 

Change background of current field:
example.css
input:focus { background: yellow }
input:focus:hover { background: LightYellow }

Hide/Show fields with Radiobutton selection:

 OnClick=”{ElementID.style.visibility = ‘visible’;ElementID2.style.visibility = ‘hidden’}”

Automatically move to next field on certainlength:
example.aspx
< input ID=”txtF1″ onKeyPress=”{if ( document.form1.txtF1.value.length == 5 ) { document.form1.txtETF2.focus();}}”>
< input ID =”txtF2″ onKeyPress=”{if ( document.form1.txtF2.value.length == 3 ){ document.form1.txtF3.focus();}}”>
< input ID=”txtF3″ >

(onKeyPress,onChange, onClick)

Colour Names

Next Page »