[glug-t] Re: gdb and regexp question !

Upendra writes:
> Hi
> grep compatible regular expressions:
> 
> a.For any date in mm/dd/yyyy format

[[:digit:]]{2}/[[:digit:]]{2}/[[:digit:]]{4}

> b.All lines that contain matching bracket (e.g. This line should match)

(.*)

> c.All line starting with capital letter and ending with small letter

^[A-Z].*[a-z]$

> d.IP address in dotted decimal format

[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}

> e.Floating point number
> f.All lines in a given shell script that are NOT commented

^[^#]

> g.Email address where allowed letters are A-Z, a-z and 0-9 (e.g.
> some1@xxxxxxxxxxx)

[[:alnum:]]*@[[:alnum:].]*

> Give the commands in gdb to do the following:
> a.Setting breakpoint in function ?func? in main.cpp

break func

> b.Display program listing
> c.Single stepping through the program

s and n

> d.Displaying the value of a particular variable

print varname

Vijay
-- 
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org 
This allows you to send and receive SMS through your mailbox.


Powered by Outblaze
---------------------------------------------------------------
To unsubscribe send a mail to glug_t-request@xxxxxxxxxxxxx with 
'unsubscribe' as subject.

Website: http://glugt.linuxisle.com

Other related posts: