Regular expression
Posted: Sat Jan 26, 2008 2:17 pm
I'm just starting out with regular expressions and wonder how would I go about this please:
After returning a MS SQL database field name of , say,
$field_name = "Print_Paragraph_1";
how can I use a regular expression to change this so that
$fields_name = "Print paragraph 1:"
please?
(change all letters, other than the first letter, to lower case, replace underscores with spaces and append a colon).
After returning a MS SQL database field name of , say,
$field_name = "Print_Paragraph_1";
how can I use a regular expression to change this so that
$fields_name = "Print paragraph 1:"
please?
(change all letters, other than the first letter, to lower case, replace underscores with spaces and append a colon).