+ Reply to Thread
Results 1 to 3 of 3

Help with RegExp - Finding / Extracting str

  1. #1
    Forum Contributor
    Join Date
    08-22-2017
    Location
    USA
    MS-Off Ver
    2016 WINDOWS and MAC
    Posts
    294

    Help with RegExp - Finding / Extracting str

    Hi, i have an expression I need to extract from a string.


    String to search:
    Could be any string, single line
    Literal example: "it was a warm day. 80F RH60 DP60"



    Expression to find:

    Format: xxF RHxx DPxx , where x = single digit 0-9,

    Literal example: 80F RH60 DP50 'note: digits always 2 places



    --------------------------------

    I have tried using the RegExp library. Unsure how to actually find a multiple character match for a specific string. Frankly I am done wasting my time. The library is unintuitive. (what are submatches vs matches?, I don't care about submatches, I just want... matches?)


    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    08-22-2017
    Location
    USA
    MS-Off Ver
    2016 WINDOWS and MAC
    Posts
    294

    Re: Help with RegExp - Finding / Extracting str

    Hi,

    I was escaping the operators with a forward slash versus backslash so that was the source of my failures...

    Think i got it with this pattern: RegPAT = "(\d\dF RH\d\d DP\d\d)"



    Thanks

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,464

    Re: Help with RegExp - Finding / Extracting str

    edit
    Seems you solved for yourself.

+ 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] Finding and Extracting Expected set of characters from a cell
    By ClubleyM in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-21-2017, 09:27 AM
  2. [SOLVED] VBA RegExp
    By vnzerem in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-11-2014, 05:45 PM
  3. Finding and extracting Data only if it is in BOLD
    By Zack99 in forum Excel General
    Replies: 1
    Last Post: 08-24-2012, 09:51 PM
  4. Error with Set RegExp equal to New RegExp vba
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-22-2011, 05:28 PM
  5. Finding and extracting names
    By csynic in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2011, 01:35 PM
  6. Finding and extracting populated cells in a column
    By JONNY981 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-11-2010, 09:11 AM
  7. Excel Formula Help for Finding and Extracting Data
    By dlaw13 in forum Excel General
    Replies: 6
    Last Post: 01-21-2010, 03:10 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