On 12/20/2011 10:49 AM, Brandon McCaig wrote:
Hello:

On Tue, Dec 20, 2011 at 08:03:56PM +0530, Saravanan Murugaiah wrote:
Many thanks for all your kind suggestions on my request. I solved my issues
with the command "Test [0-9.]+".

Careful there: /./ matches any one character. [0-9.]+ will likely
end up matching any string containing 'Test ' followed by more
than zero characters. Be sure to escape the '.' character. For
example:

/Test [\.0-9]/

that escape isn't needed. inside a char class . means just .

other things change too like \b means backspace in [] but a word boundary outside. you have to think of the stuff inside [] to be a different minilanguage than outside of it stuff.

uri

--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to