Jump to content
UBot Underground

Case Sensitive Issue


Recommended Posts

Hi guys,

 

I'm needing to search a phrase case INsensitive.

 

The user supplies a phrase... it goes into a variable

 

The bot scrapes a google results page, and that goes into a variable.

 

So, of course I tried using the $contains function to see if var1 was found in var2 ... but because of text case issues, it will report as not found when in fact it is there, it is just not in the same case.

 

So, can anyone provide me an example on how to achieve this in a case insensitive way?

 

I assume that this can be achieved using regex, I just don't know how to structure it to work with my variable.

Link to post
Share on other sites

Any ideas on how I could achieve case insensitive exact match?

 

Example - Currently, my variable might have the phrase: today is a good day

 

And in the text it's searching, it defines: good day today is a nice phrase ... as a match because it has all of the words.

Link to post
Share on other sites

Any ideas on how I could achieve case insensitive exact match?

 

Example - Currently, my variable might have the phrase: today is a good day

 

And in the text it's searching, it defines: good day today is a nice phrase ... as a match because it has all of the words.

 

Try this: http://rubular.com/r/NuzpXICyVO

Link to post
Share on other sites

Join the conversation

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

Guest
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.

Loading...
×
×
  • Create New...