You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just some suggestions - feel free to ignore or use as you see fit!
In the line Replace a single character (x) with several other characters (vwxyz) the GREL should be either value.replace(" & ", " and ") or value.replace("&", "and"). The current GREL would lead to extra spaces in the final result
In the line Remove more than one space suggest that the final column reads Removes more than three spaces as this is the result of the specific GREL used. Alternatively a regular expression replace could be used to replace any number of multiple spaces value.replace(/\s+/, "")
In the line Replace a single character (x) with several other characters (vwxyz) the GREL expression syntax has a trailing space after char
In the line Replace several characters (abcde) with several others (vwxyz) the GREL expression syntax has a trailing space after chars
In the last two lines demonstrating the use of regular expressions the formula in the GREL expression syntax column should use generic entries for the regular expression rather than the specifics (which are used in the following column). e.g. value.replace(/_regular expression_/,"newchars") and value.replace(/^regular expression/,"newchars")
The text was updated successfully, but these errors were encountered:
Brilliant - thanks @ostephens - I have made all those changes. Do we want to add this at some stage to the LC files for the OR lesson or just leave it here?
Just some suggestions - feel free to ignore or use as you see fit!
Replace a single character (x) with several other characters (vwxyz)
the GREL should be eithervalue.replace(" & ", " and ")
orvalue.replace("&", "and")
. The current GREL would lead to extra spaces in the final resultRemove more than one space
suggest that the final column readsRemoves more than three spaces
as this is the result of the specific GREL used. Alternatively a regular expression replace could be used to replace any number of multiple spacesvalue.replace(/\s+/, "")
Replace a single character (x) with several other characters (vwxyz)
the GREL expression syntax has a trailing space afterchar
Replace several characters (abcde) with several others (vwxyz)
the GREL expression syntax has a trailing space afterchars
GREL expression syntax
column should use generic entries for the regular expression rather than the specifics (which are used in the following column). e.g.value.replace(/_regular expression_/,"newchars")
and value.replace(/^regular expression/,"newchars")The text was updated successfully, but these errors were encountered: