CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions: Re: [wingsof5r] Reg ex for English (United States): Edit Log



KevinR
Veteran


Jun 12, 2008, 2:18 PM


Views: 3557
Re: [wingsof5r] Reg ex for English (United States)

Your way could be written like so:

$Language =~s/([()])/\\$1/g;

But \Q is for this exact purpose and should be used.
-------------------------------------------------


(This post was edited by KevinR on Jun 12, 2008, 2:21 PM)


Edit Log:
Post edited by KevinR (Veteran) on Jun 12, 2008, 2:21 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives