Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
need a regular expression.
#1
Not Solved
i have a string as below.

Code:
for(GE_ES_Checklist_Item_Submission__c sub : subList){




for(Id temp : userOrGroupIds.get(queueMap.get(cia.GE_OG_Assigned_Queue__c))){  




for (GE_ES_Submission_Item_Proxy__c r : [Select GE_ES_Risk_Checklist_Item__c,GE_ES_Risk_Checklist_Item__r.GE_OG_GS_DealMngt__c,GE_ES_Risk_Checklist_Item__r.GE_OG_GS_DealMngt__r.GE_ES_Opportunity__r.RecordType.name from GE_ES_Submission_Item_Proxy__c where GE_ES_Submission_Proxy__c = :this.submitSession]) {

I need a regex which gives 3 matches,

I've come with the regex "for\(\w*\s*\w*\s*:+\s*\w*\.*\w*\)\s*\{" but it gives only 2 matches and if i use "for\(\w*\s*\w*\s*:+\s*.*\)\s*\{" it matches the full string above and gives 1 match.

Please help.

this is working

"for\s*\(\w*\s*\w*\s*:+\s*\[*.*\]*\w*\.*\w*\)\s*\{"


can it be simplified further?

this is working.

"for\s*\(\w*\s*\w*\s*:+\s*\[*.*\]*\w*\.*\w*\)\s*\{"

can it be simplified further??
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need Any digit in xpath path using Regular expression Priyam 1 3,235 10-05-2016, 11:05 AM
Last Post: Ankur
  Regular expression to read two words in lowercase, uppercase and with and without spa sarahq49 1 3,175 04-09-2015, 01:56 AM
Last Post: sarahq49
  Regular expression and script optimisation Padmavathy 1 3,598 03-30-2015, 11:46 AM
Last Post: supputuri
  Regular expression in descriptive programming testernc 1 16,375 12-08-2014, 06:38 PM
Last Post: anshika.agarwal
Rolleyes Help Required : In Understanding the regular expression arescool 0 2,807 08-15-2013, 08:59 AM
Last Post: arescool

Forum Jump:


Users browsing this thread: 1 Guest(s)