Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to use find substring in spark with regex
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
nickname  
View profile   Translate to Translated (View Original)
 More options Jun 26 2012, 7:28 am
From: nickname <inad...@gmail.com>
Date: Tue, 26 Jun 2012 04:28:25 -0700 (PDT)
Local: Tues, Jun 26 2012 7:28 am
Subject: How to use find substring in spark with regex

Hi ,
Is it possible to check if a string contain a word in spark view engine?
for instance ,Is there any regex thing that can help me to find "test" in
below string :
"this is a test string"

thank you


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rob G  
View profile   Translate to Translated (View Original)
 More options Jul 7 2012, 2:53 am
From: Rob G <robertgreyl...@gmail.com>
Date: Sat, 7 Jul 2012 07:53:29 +0100
Local: Sat, Jul 7 2012 2:53 am
Subject: Re: How to use find substring in spark with regex

Hi Amir,

I see this was asked a while ago, and I've been away. Did you figure this
out? Also, do you need Regex or just string.Contains()?

Rob


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nickname  
View profile   Translate to Translated (View Original)
 More options Jul 7 2012, 5:33 am
From: nickname <inad...@gmail.com>
Date: Sat, 7 Jul 2012 02:33:11 -0700 (PDT)
Local: Sat, Jul 7 2012 5:33 am
Subject: Re: How to use find substring in spark with regex

HI Rob,
No difference , I am looking for any possible solution to find a substring
in a string.
tanx


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rob G  
View profile  
 More options Jul 7 2012, 5:45 am
From: Rob G <robertgreyl...@gmail.com>
Date: Sat, 7 Jul 2012 10:45:44 +0100
Local: Sat, Jul 7 2012 5:45 am
Subject: Re: How to use find substring in spark with regex

If you could give more context to how you'd like to use it, that may help
give a better solution.

Does this work for you?

<var someString="this is a test string" />
<viewdata stringFromViewData="string" />

<div if='someString.Contains("test")'>This will render if true</div>

<div if='stringFromViewData.Contains("test")'>This will render if
true</div> <!-- you can use C# code inside the if attribute -->

Cheers,
Rob


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nickname  
View profile  
 More options Jul 17 2012, 6:26 am
From: nickname <inad...@gmail.com>
Date: Tue, 17 Jul 2012 03:26:31 -0700 (PDT)
Local: Tues, Jul 17 2012 6:26 am
Subject: Re: How to use find substring in spark with regex

thank you very much


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »