regarding ignore case sensitive of a string using regularexpressions

Discussion in 'Python' started by Mosas, Mar 22, 2005.

  1. Mosas

    Mosas Guest

    Dear All
    In Perl when we are checking some conditions
    using regular expression we can ignore the case
    sensitive of a string using the following regular
    expression /(^[^a-z])|/|(\.\.)/i.
    But If I try to do this in Python I couldn't get
    any result.
    So Any body know regarding this Kindly mail me
    with example.

    regards
    Prabahar


    ________________________________________________________________________
    Yahoo! India Matrimony: Find your life partner online
    Go to: http://yahoo.shaadi.com/india-matrimony
     
    Mosas, Mar 22, 2005
    #1
    1. Advertising

  2. Re: regarding ignore case sensitive of a string using regular expressions

    Mosas wrote:

    > In Perl when we are checking some conditions
    > using regular expression we can ignore the case
    > sensitive of a string using the following regular
    > expression /(^[^a-z])|/|(\.\.)/i.
    > But If I try to do this in Python I couldn't get
    > any result.
    > So Any body know regarding this Kindly mail me
    > with example.


    RTFM: http://www.python.org/doc/2.3.4/lib/re-syntax.html
    (What you want is described under the (?iLmsux) heading)
    or http://www.python.org/doc/2.3.4/lib/node106.html

    Maarten
     
    Maarten Sneep, Mar 22, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nico Grubert
    Replies:
    4
    Views:
    701
    Gabriel Cooper
    Feb 2, 2005
  2. Synonymous
    Replies:
    10
    Views:
    508
    Synonymous
    Apr 22, 2005
  3. Replies:
    1
    Views:
    2,509
    Mark P
    Apr 6, 2007
  4. Stephanie

    case sensitive / insensitive string equality

    Stephanie, Oct 3, 2005, in forum: ASP General
    Replies:
    2
    Views:
    186
    Steven Burn
    Oct 3, 2005
  5. Xah Lee
    Replies:
    4
    Views:
    1,006
Loading...

Share This Page