Jump to content

Scan From String Woes


Recommended Posts

Mike,

You have it correct. And I have several places in my code where is does work. I've only come across this one instance.

Match pattern is working for me. Scan from String is sometime too strict in it's parsing I've found.

It did save my bacon where I had to parse a Binary string. Scan %8b worked great.

Link to comment
Match pattern is working for me. Scan from String is sometime too strict in it's parsing I've found.

Just be carefull when using Match Pattern. Sometime you forget about special characters that are used in the regular expression input. See example:

As you see we are looking for \b and can't find it since it thinks we want the backspace code. Of course this can be ignored by using \\b but you should be aware of this especially if your regular expression is programmatically generated.

post-10-1074063984.gif?width=400

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.