Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: browse if regexm(make,".")


From   Robert Picard <[email protected]>
To   [email protected]
Subject   Re: st: browse if regexm(make,".")
Date   Tue, 29 Mar 2011 09:57:43 -0400

When using regular expressions, the "." matches everything. If you
need to match a dot, use "\."

Robert

On Tue, Mar 29, 2011 at 9:54 AM,  <[email protected]> wrote:
> Dear Statalisters,
>
> Actually, I have this problem as well:
>
> ****
> sysuse auto
> browse if regexm(make,"A")==1        // it lists all string variables with a "A"
> browse if regexm(make,".")==1        // it lists everything instead of just the obs with a dot(".")
> ****
>
> Best,
>
> Xavier
>
> Please access the attached hyperlink for an important electronic communications disclaimer: http://lse.ac.uk/emailDisclaimer
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index