Results 1 to 5 of 5
  1. #1
    munish is offline Member
    Join Date
    Jul 2009
    Posts
    37
    Rep Power
    0

    Default Regex problem to select text

    Hi Guys,

    I trying to select between {{ and }} (included), i am struggling with selecting text after new line.
    Could you please suggest to select all characters after evry new line till }}.


    {{Infobox musical artist <!-- See Wikipedia:WikiProject_Musicians -->
    | name = Russ Conway
    | image =
    | caption = Russ Conway, pictured on the front of his 1959 [[Extended play|EP]] ''More Party Pops''.
    | image_size =
    | background = non_vocal_instrumentalist
    | birth_name = Trevor Herbert Stanford
    }}

    '''Russ Conway''' (2 September 1925 – 16 November 2000) was a British [[popular music]] [[pianist]].<ref name="British Hit Singles & Albums">{{cite book
    | first= David
    | isbn= 1-904994-10-5
    | pages= 118/9}}

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default Re: Regex problem to select text

    Show what you have so we know HOW you are trying to go about it, so that we can make sensible suggestions that work within the framework you currently have.

  3. #3
    munish is offline Member
    Join Date
    Jul 2009
    Posts
    37
    Rep Power
    0

    Default Re: Regex problem to select text

    i am trying with
    {{.*\n
    after this dnt knw what expression to insert.

  4. #4
    jim829 is online now Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,618
    Rep Power
    5

    Default Re: Regex problem to select text

    Check out the the flags in the Pattern class. I also told you how to match similar patterns in an earlier thread.

    Regards,
    Jim
    The Java™ Tutorial | SSCCE | Java Naming Conventions
    Poor planning our your part does not constitute an emergency on my part.

  5. #5
    munish is offline Member
    Join Date
    Jul 2009
    Posts
    37
    Rep Power
    0

    Default Re: Regex problem to select text

    got answer
    Pattern.DOTLINE
    did the work thanks guys...

Similar Threads

  1. Disable Text Select without Disabling Right Click
    By tetrabyteluke in forum New To Java
    Replies: 10
    Last Post: 03-29-2012, 05:58 PM
  2. finding regex patterns in text file
    By jessie in forum New To Java
    Replies: 4
    Last Post: 11-08-2010, 08:42 PM
  3. Using regex to retrieve all text inside parentheses
    By adhoc334 in forum Advanced Java
    Replies: 5
    Last Post: 08-18-2010, 08:05 PM
  4. Is it possible to highlight/select text in a JTextArea
    By AJArmstron@aol.com in forum New To Java
    Replies: 29
    Last Post: 04-29-2010, 07:05 PM
  5. Replies: 15
    Last Post: 03-02-2010, 07:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •