Results 1 to 5 of 5
Thread: Regex problem
- 05-09-2010, 01:55 PM #1
Member
- Join Date
- May 2010
- Posts
- 2
- Rep Power
- 0
Regex problem
Hi,
Is it possible to make a regular expression so that a certain character can only be used a 2 times throughout the whole string? It doesn't work with quantifiers because those ensure you that a certain character can't be used a certain amount of times in a pattern and not in a whole string.
Thanks in advance!
- 05-09-2010, 02:17 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
something like this?
rerfrgrxgsthhgbdxdg
Yes, it's possible. In may ways you can validate that.
- 05-09-2010, 03:07 PM #3
Member
- Join Date
- May 2010
- Posts
- 2
- Rep Power
- 0
Really? How? Because I searched for 2 hours and I didn't find a solution to it :s
You don't want to give a hint perhaps? :-)
- 05-09-2010, 03:37 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,422
- Blog Entries
- 7
- Rep Power
- 17
- 05-14-2010, 07:17 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Similar Threads
-
Please Help - Regex
By BeeGee in forum Advanced JavaReplies: 0Last Post: 04-28-2010, 05:28 PM -
Help with regex
By SteroidalPsycho in forum New To JavaReplies: 2Last Post: 03-29-2010, 12:40 AM -
Using regex
By SteroidalPsycho in forum New To JavaReplies: 0Last Post: 03-28-2010, 11:07 PM -
Multiline Regex
By zriggle in forum New To JavaReplies: 1Last Post: 02-26-2009, 04:49 AM -
regex problem - allowing optional space
By Norm in forum Advanced JavaReplies: 26Last Post: 10-06-2008, 04:38 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks