Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9323335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T04:19:06+00:00 2026-06-19T04:19:06+00:00

Solved. See footnote. /*check regex*/ go = 1; i = 1; do while (go

  • 0

Solved. See footnote.

            /*check regex*/
            go = 1; 
            i = 1; 
            do while (go = 1);
                set braw.regex point = i;
                    if (upcase(fname) = upcase("&var.")) then do;

                        put format1 " one"; /*format1 is a field of braw.regex, properties says character length 30*/
                        if format1 = '/\d{8}/' then put 'hello world one'; else put 'good bye world one';
                        %check1(&data, format1, &var) 


                    end;
                    else i = i+1;  

            end;

      /*check1 passes regex, string, true false to check_format*/
%macro check_format(regex, string, truefalse);

    pattern = prxparse(&regex.);
    truefalse = prxmatch(pattern, &string); 
    put &regex " " &string " " &truefalse "post";
%mend;

So sorry about the lack of indentation – stackover flow seems to be being buggy or something.

This outputs

 /\d{8}/ one
good bye world one

apparently format isn’t a string. So it then fails the prxparse, as it’s looking for a string input.
Any idea of what I do?

I was thinking I could use a macro variable to put quotes around it, perhaps using:

call symput('mymacrovar', format1);
%let mymacrovar = "&mymacrovar"; 

but that symput does nothing.

Solved:
It was being read as a string. On the CSV file that the regex dataset was being read from, there were additional spaces between the commas, making the string ‘ /\d{8}/’ which prxparse doesn’t like.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T04:19:07+00:00Added an answer on June 19, 2026 at 4:19 am

    It was being read as a string. On the CSV file that the regex dataset was being read from, there were additional spaces between the commas, making the string ‘_/\d{8}/’ (underscore denoting a space) which prxparse doesn’t like.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

(Solved see bellow) My AVD Manager doesn't launch while SDK Manager works good... It
SOLVED: See my answer . I'm trying to find a point that is interior
SOLVED, see the last edit I have a SourceForge repository and I correctly set
Edit: I have solved this by myself. See my answer below I have set
[SOLVED] See my answer below. I am trying to use stringstream (named ss) to
Problem Solved - See bottom for solution notes I'm trying to build a simple
Problem solved, see below Question I'm working in Flex Builder 3 and I have
(Problem solved now, see answers below) Hello, in my app I am trying to
[EDIT: Problem solved. Please see my answer below.] In my app I call the
EDIT: This problem has been solved. See below. Hey all. I'm building an iPhone

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.