Re: Regular Expression



In <1163012269.707590.302280@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> "Rahul" <ravi.sgn@xxxxxxxxx> writes:

I need a regular expression..
The conditions are as follows...

1. There should not be any blank spaces.

^[^ ]*$

(Note that I interpreted "spaces" literally. If you also wanted to exclude
other space-like characters such as tabs, you'll have to modify this
expression.)

2. Text may or may not contain slashes.

I'm not sure why this condition is even listed. It's okay to have slashes,
but it's also okay not to have them. This condition is meaningless.

--
John Gordon "... What with you being his parents and all,
gordon@xxxxxxxxx I think that you could be trusted not to shaft
him." -- Robert Chang, rec.games.board

.



Relevant Pages

  • Re: Regular Expression
    ... other space-like characters such as tabs, you'll have to modify this ... but it's also okay not to have them. ... I.e. are we allowing all strings, ...
    (comp.lang.java.programmer)
  • Re: Regular Expression
    ... The text should not contain any other special symbol other than /. ... other space-like characters such as tabs, you'll have to modify this ... but it's also okay not to have them. ...
    (comp.lang.java.programmer)
  • Re: Politer REPOST - RUNDLL Error - bridge.dll
    ... is it okay to delete or modify the RunDLL entry in the righthand pane ... I have navigated to the following key use the Registry Editor: ... In the righthand pane on the screen, there's an entry that looks like this: ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: can you tell me how to learn making bootloader easily?
    ... Okay, I understand now. ... You did not say what you wanted to modify in the ... original post. ... is being built. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Calculating... forever
    ... All drop down combo boxes have populated themselves okay. ... The form has tabs on it and one tab has a subform. ... The "of how many" bit at the bottom of the form does not appear at all - but ... The development of the form in Access 2003 and compiling in 2000 is a bit non- ...
    (microsoft.public.access.formscoding)