+ Reply to Thread
Results 1 to 4 of 4

Extract specific group in regex pattern

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Extract specific group in regex pattern

    Hello everyone

    I am trying with specific regex pattern like that
    Please Login or Register  to view this content.
    I need two points: first how to extract only the group number 1 (which is surrounded by two brackets (....)
    The second point : how to replace this group with specific string?

    Example of string: 31. Jan. 2020 14:67

    ** Note: I know that I can use excel basics and functions of split and so on to do such task..
    I just need replies which is related to regular expressions.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Extract specific group in regex pattern

    As for the first point, I could extract the first group in the pattern using this UDF
    Please Login or Register  to view this content.
    Still waiting for help as for the second point?

  3. #3
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,133

    Re: Extract specific group in regex pattern

    Try this;

    Please Login or Register  to view this content.
    Last edited by Haluk; 04-07-2020 at 02:01 PM.

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Extract specific group in regex pattern

    Thank you very much Haluk. That works like charm
    Best Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Regex Pattern Matching
    By visualnotsobasic in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-16-2018, 09:56 PM
  2. [SOLVED] Generate unique numbers according to specific regex pattern
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 28
    Last Post: 08-14-2018, 04:16 PM
  3. [SOLVED] Regex pattern for specific date format
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-01-2018, 10:14 AM
  4. Need to Define RegEx pattern
    By hmr2662 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-09-2015, 09:24 AM
  5. RegEx pattern
    By capson in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 02-15-2015, 06:57 PM
  6. Regex - establishing a pattern
    By twckfa16 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-30-2014, 11:06 AM
  7. [SOLVED] RegEx pattern to extract multiplelines title in TXT file
    By p24leclerc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-06-2014, 08:39 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1