Superman has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (regular expressions)
i have a scalar as follows
However in order to query the URL PROPERLY i need for my string to read
how can i write a regex that will remove these brackets from the string???
when i query this in cgi, it is done so as$journal = STRUCTURE (LONDON)
this gives the + in the middle to complete the URL.STRUCTURE+(LONDON)
However in order to query the URL PROPERLY i need for my string to read
so that the CGI query is STRUCTURE+LONDON.$journal = STRUCTURE LONDON
how can i write a regex that will remove these brackets from the string???
thanks in advance$journal = ~ s/ (help remove brackets) //g;
Originally posted as a Categorized Question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: how do i replace brackets in a regex?⭐
by particle (Vicar) on Apr 09, 2002 at 18:11 UTC | |
Re: how do i replace brackets in a regex?
by Schuk (Pilgrim) on Apr 18, 2002 at 14:37 UTC | |
Re: how do i replace brackets in a regex?
by I0 (Priest) on Apr 20, 2002 at 08:03 UTC |
Back to
Seekers of Perl Wisdom